[JBoss Seam] - Validation oracle date field
by igorarbizu
Hi,
When I try to save a form generated from seam-gen with a date field (oracle 9i, type Date) I get this error: model validation:failed, with the right format, and get no more clues anywhere. These are the relevant parts of the code:
In UserEdit.xhtml:
<s:decorate id="startdateDecoration" template="layout/edit.xhtml">
| <ui:define name="label">startdate</ui:define>
| <h:inputText id="startdate"
| value="#{memberHome.instance.startdate}" required="true">
| <s:convertDateTime pattern="MM/dd/yyyy"/>
| </h:inputText>
| </s:decorate>
and in the correspondig entity (User):
private Date startdate;
| .....
| @Basic @Temporal(TemporalType.DATE)
| @NotNull
| public Date getStartdate() {
| return this.startdate;
| }
| public void setStartdate(Date startdate) {
| this.startdate = startdate;
| }
|
Any idea?? I've been looking for a solution for a while, in the forum etc but
I can't go on
Thanks
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063595#4063595
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063595
19Â years
[JBoss Seam] - commandLink/commandButtton do not invoke action listener
by mrwaves
I would like to update the values of the following check boxes in the database by using a form as shown below.
| <h:form id="category_form">
| <h:dataTable value="#{categoryFinder.categories}"
| border="1" var="category"
| rendered="#{not empty categoryFinder.categories}">
| <h:column>
| <f:facet name="header">Category</f:facet>#{category[0]}
| </h:column>
| <h:column>
| <f:facet name="header">Assigned</f:facet>
| <h:selectBooleanCheckbox id="categoryList" disabled="false"
| value="#{category[1] > 0}" />
| </h:column>
| <h:column>
| <f:facet name="header">Preferred</f:facet>
| <h:selectBooleanCheckbox id="PreferredList" disabled="false"
| value="#{category[2] == 1}" />
| </h:column>
| </h:dataTable>
| <h:commandButton id="savecategory" value="Save"
| action="#{categoryFinder.updateCategory}" />
| </h:form>
|
When I click the submit button, the page is rerendered and and the altered check boxes are saved. But the action listener categoryFinder.updateCategory is not invoked - which means no database update has been taken place.
| @Stateful
| @Name("categoryFinder")
| @Scope(ScopeType.CONVERSATION)
| public class categoryFinderBean implements Serializable, CategoryFinderInterface
| {
| @PersistenceContext
| private EntityManager entityManager;
|
| @DataModel
| private List categories;
|
| @RequestParameter
| private String id;
|
| @Begin
| @Factory("categories")
| public void initCategories()
| {
| try
| {
| //This is a native query which uses a JOIN on several tables
| String nativeQuery = "SELECT name, assigned, preferred FROM [...]";
| this.categories = entityManager.createNativeQuery(nativeQuery).getResultList();
|
| } catch (NoResultException e)
| {
| // ignore
| }
| }
|
| @End
| public void updateCategory()
| {
| return;
| }
|
| @Destroy
| @Remove
| public void destroy()
| {
| }
| }
|
I tried to stick to the examples in the Seam documentation. Is there any suitable reason why this happens? I've been looking for a solution the wohle day now :(
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063593#4063593
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063593
19Â years
[JBoss jBPM] - conditional transition behavior
by ricardomarques
hi guys
here's my problem:
| <task-node name="confinuar">
| <task name="deseja continuar" swimlane="default">
| <controller>
| <variable name="decisao" access="read,write,required"></variable>
| </controller>
| </task>
| <transition name="t end" to="end">
| <condition>#{ contextInstance.variables.decisao == 'sim' }</condition>
| </transition>
| <transition name="repetir" to="decidir o destinatario">
| <condition>#{ contextInstance.variables.decisao != 'sim' }</condition>
| </transition>
| </task-node>
|
While running the task instance i only get "repetir" on transitions list. Shouldn't I get a empty list to signal and then jbpm evaluates the transition? Or is something wrong with my conditions that could afect something?
btw currently according some post i read, conditions support both beanshell and EL, but which is adviceable to use, since beanshell i guess it's more complete it should be used, but the greater part from the posts I read are EL.
thanks in advance
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063589#4063589
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063589
19Â years
[Messaging, JMS & JBossMQ] - Re: No ClassLoaders found for: ClassLoading problem in JMS M
by adrianï¼ jboss.org
"avis1977" wrote : Thats correct... we are infact using the defineClass()
|
| That's not surprising since there is no other way to load a class.
| Is there a way still to make this class available to the RepositotyClass loader.
|
Yes. As long as you haven't already tried to load the class,
otherwise it will cache the miss and tell you the forever the class could not be
loaded.
anonymous wrote :
| By the way the classLoader instance that I get at the point of time when I generate my code is an instance of the GenericClassLoader.
|
That's not a JBoss classloader of any type. I can't even tell you whose it is
The information doesn't make your question any more answerable than it was originally.
It's just some debug code for which you don't show any output or where
it is being executed.
Let me make some observations (I'm leaving this thread now).
1) THIS IS NOT A QUESTION ABOUT JMS - wrong forum
2) If you are going to play with classloaders then you need to understand how
they work.
In particular the JBoss classloading structure, i.e. what is visible from what context
e.g. each ejb gets its own thread context classloader (even if they share
the same underlying parent classloader)
3) What you are doing won't even work if you enable the java security manager.
4) If you really want your question answered (when you post it in a forum
that is relevant) then you need to post pertinent information.
e.g. I've yet to see the code that actually defines the class, where that is done
against which classloader, etc.
When I say which classloader, I mean classloader.toString() and
a print of the classloader.getParent() stack, NOT some code doing
| Thread.currentThread.getContextClassLoader()
|
which it meaningless since it could have any value depending upon where your code executes.
The list of what is required for somebody to understand your question
is longer than this, you can find it on the WIKI.
I'm certainly not going to go through 20 posts to try to squeeze that information out of you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4063588#4063588
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4063588
19Â years