You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Dave (JIRA)" <de...@myfaces.apache.org> on 2005/12/27 12:27:32 UTC
[jira] Created: (MYFACES-981) action/action listener/model upate/ were not called
<t:dataList> action/action listener/model upate/ were not called
----------------------------------------------------------------
Key: MYFACES-981
URL: http://issues.apache.org/jira/browse/MYFACES-981
Project: MyFaces
Type: Bug
Components: Tomahawk
Versions: Nightly
Environment: Windows XP, JBoss 4.0.3 SP1
Reporter: Dave
Priority: Critical
<h:form>
<t:dataList
var="child"
value="#{treeNode.children}"
layout="simple"
rowCountVar="rowCount"
rowIndexVar="rowIndex">
<h:commandLink action="#{child.go}" actionListener="#{child.listen}" value="Go" />
<h:commandButton action="go" value="Go"/>
<h:inputText value="#{child.name}"/>
</t:dataList>
<Submit Button here>
</h:form>
Rendering is OK.
But clicking commandLink, actionListener was not called, action method was not called.
the same problem for commandButton.
For inputText, child.setName() was not called. That is, model update for inputText was not called.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
Re: Row count var in dataTable
Posted by Manfred Geiler <ma...@gmail.com>.
You must omit the "#{}" from your rowCountVar attribute.
"rowCountVar" defines the NAME of the scope variable and is NOT a
value reference attribute!
see http://myfaces.apache.org/tomahawk/extDataTable.html
And: Please use our users list for user questions. Dev list is ment
for discussions regarding MyFaces code itself.
Manfred
2005/12/27, Sébastien Marin <th...@free.fr>:
> Hello, i would to know how i can use the rowCountVar attribute of the dataTable.
> I try to put the var in the request in a Long format, Inerger and String. I
> always have an error :
>
> <x:dataTable renderedIfEmpty="false" id="listeElements"
> value="#{liste}" var="ligne"
> styleClass="listeElements" headerClass="head"
> rowClasses="line1,line2" columnClasses="colonneImage,
> colonneLibelle" rowCountVar="#{nbLignes}">
>
>
> Thank you.
>
> |Cordialement, Sébastien MARIN.|
> |------------------------------|
> |-> http://www.marin-s.com <-|
> |------------------------------|
>
Row count var in dataTable
Posted by Sébastien Marin <th...@free.fr>.
Hello, i would to know how i can use the rowCountVar attribute of the dataTable.
I try to put the var in the request in a Long format, Inerger and String. I
always have an error :
<x:dataTable renderedIfEmpty="false" id="listeElements"
value="#{liste}" var="ligne"
styleClass="listeElements" headerClass="head"
rowClasses="line1,line2" columnClasses="colonneImage,
colonneLibelle" rowCountVar="#{nbLignes}">
Thank you.
|Cordialement, Sébastien MARIN.|
|------------------------------|
|-> http://www.marin-s.com <-|
|------------------------------|
[jira] Closed: (MYFACES-981) action/action listener/model upate/ were not called
Posted by "Mike Kienenberger (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-981?page=all ]
Mike Kienenberger closed MYFACES-981:
-------------------------------------
Resolution: Invalid
Dave,
This situation is almost never a bug, but instead a usage error.
The information you've posted strongly points to you failing to preserve your UIData model between requests.
Make #{treeNode.children} session scoped, or use t:saveState to preserve it, and the problem will probably be solved.
I recommend that you discuss this on the user list if you have further questions.
If it turns out to be a bug, we can reopen the issue with an example showing the bug.
> <t:dataList> action/action listener/model upate/ were not called
> ----------------------------------------------------------------
>
> Key: MYFACES-981
> URL: http://issues.apache.org/jira/browse/MYFACES-981
> Project: MyFaces
> Type: Bug
> Components: Tomahawk
> Versions: Nightly
> Environment: Windows XP, JBoss 4.0.3 SP1
> Reporter: Dave
> Priority: Critical
>
> <h:form>
> <t:dataList
> var="child"
> value="#{treeNode.children}"
> layout="simple"
> rowCountVar="rowCount"
> rowIndexVar="rowIndex">
> <h:commandLink action="#{child.go}" actionListener="#{child.listen}" value="Go" />
> <h:commandButton action="go" value="Go"/>
> <h:inputText value="#{child.name}"/>
> </t:dataList>
> <Submit Button here>
> </h:form>
> Rendering is OK.
> But clicking commandLink, actionListener was not called, action method was not called.
> the same problem for commandButton.
> For inputText, child.setName() was not called. That is, model update for inputText was not called.
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira