[JBoss Seam] - Re: Ajax + Seam Advice
by harpritt
Damienn
i think ive sorted it... 30 min not bad aye
add this to my web.xml
| <filter>
| <display-name>Ajax4jsf Filter</display-name>
| <filter-name>ajax4jsf</filter-name>
| <filter-class>org.ajax4jsf.Filter</filter-class>
| </filter>
|
| <filter-mapping>
| <filter-name>ajax4jsf</filter-name>
| <url-pattern>*.seam</url-pattern>
| </filter-mapping>
|
| <context-param>
| <param-name>org.ajax4jsf.VIEW_HANDLERS</param-name>
| <param-value>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</param-value>
| </context-param>
|
| <context-param>
| <param-name>org.ajax4jsf.SKIN</param-name>
| <param-value>blueSky</param-value>
| </context-param>
|
Disabled the faceletview handler in the faces config
<!--view-handler>org.jboss.seam.ui.facelet.SeamFaceletViewHandler</view-handler-->
and added the Ajax4jsf and RichFaces jars to my WAR, and add also added oscache for fun...
and that was it... is it that simple?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070309#4070309
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070309
18Â years, 8Â months
[JBoss jBPM] - Re: Bypass Form Validation For Certain Operations?
by khamburg
One of the reasons I'm using the JSF form validation is that the "required" attribute isn't enforced in the process definition, e.g. :
|
| <task-node name="MyTaskNode">
| <task name="MyTask" >
| <controller>
| <variable name="MyVar" access="write,required"></variable>
| </controller>
| </task>
| <transition to="MyNextNode" name="Next Node"></transition>
| </task-node>
|
|
|
You can open the corresponding form for this node in the jbpm console, omit a value for MyVar, and click Next Node to transition to the next node without any validation error occurring. I looked at the code in TaskController::submitParameters() and it is simply checking for variable's existence in a map, regardless of contents. But this will never fail because an empty variable for MyVar is automatically created by JBPM when it creates the task.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4070301#4070301
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4070301
18Â years, 8Â months