Marlon Tong

Greenhorn
+ Follow
since Jul 14, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Marlon Tong

Hi guys, anyone encountering this error? It's weird because it doesn't happen to me locally using netbeans/tomcat 6.0.18, but when i deploy it to a server running tomcat of the same version, i get this error. I then tried asking my colleagues to build the same codes using netbeans also, but on their machines, it works fine.

TreeStructure of type org.ajax4jsf.application.TreeStructureNode is not supported.

Caused by:
java.lang.IllegalArgumentException - TreeStructure of type org.ajax4jsf.application.TreeStructureNode is not supported.
+- Stack Trace
java.lang.IllegalArgumentException: TreeStructure of type org.ajax4jsf.application.TreeStructureNode is not supported.
at org.apache.myfaces.application.TreeStructureManager.restoreTreeStructure(TreeStructureManager.java:106)
at org.apache.myfaces.application.jsp.JspStateManagerImpl.restoreView(JspStateManagerImpl.java:316)
at org.apache.myfaces.application.jsp.JspViewHandlerImpl.restoreView(JspViewHandlerImpl.java:515)
at org.apache.myfaces.lifecycle.RestoreViewExecutor.execute(RestoreViewExecutor.java:85)
at org.apache.myfaces.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:103)
at org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:76)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:151)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:177)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:267)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:380)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:507)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at com.transcomww.pdp.web.util.SessionFilter.doFilter(SessionFilter.java:45)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
15 years ago
JSF
Hi guys,

Right now the solution I implemented was having all the validations done by the action. I find it dirty since we don't get to use the Validation phase of JSF and have all the validation done in the action.

Hoping to find a neater solution to the problem, if there's any. For now, the solution implemented works.

Thanks for the suggestions
15 years ago
JSF
here it is, forgive the messy codes (i didn't write them)

there's 2 h:commandButtons near the bottom of the code that trigger different actions. right now, both validate the same way since they submit the same form (all except the comments are mandatory). what i need is that if the second button ("Validate") is triggered, only the 2 t:inputFileUpload are mandatory, all else should be ignored in the validation process.

15 years ago
JSF
Hi guys,

I have a page with form elements that are submitted through 2 different actions that are in the same Controller. My problem is that I need it to validation differently depending on which action was triggered. One action should have every form element mandatory, while in the other, only 2 of the form elements would be mandatory.

Is there a way to implement this in JSF?

Thanks,
Marlon
15 years ago
JSF
i believe you'd need the database or whatever storage from the server side for that since you're talking about different clients already.
15 years ago
JSF
Good day,

I'm having a weird problem with JSF with A4J. I have a form with 2 <h:selectonemenu> where we need to select a value from the first in order to populate the next with choices. I implemented this by adding an <a4j:support> tag inside the <h:selectonemenu> tag. So far, this part is working fine as the 2nd h:select.. gets populated with data. The problem however is that after we submit the form again (1st submission was during ajax event), I get a validation problem stating that the value for the 2nd h:select.. is not valid. After debugging the application, I found out that the error was because the form was never mapped again to the backing bean. I'm surprised why this is the case since I was under the impression this was supposed to be done automatically by JSF. (I'm very close with quitting on JSF)

At first I thought this might be an issue with a4j, but I experimented on another implementation where the page would reload upon selection from the 1st h:select... (no more ajax) to populate the options for the 2nd h:select.. and I still encounter the same problem.

My theory is that upon the 1st submission (populating 2nd h:select...), the page somehow got screwed up and caused the form not to submit properly. But I'm very much at a loss as to how and why this happens.

Hoping someone has encountered the same thing and found a solution.
15 years ago
JSF