You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by mikeatx <mi...@compass-consulting.net> on 2008/01/16 13:30:18 UTC

Trinidad Table range navigation problem

Hi,
I'm using Trinidad components, I try to display a table with range
navigation but the range navigation don't work, the first range is always
displayed. Must I implement some business myself?
Here is my jspx code:

<tr:table value="#{jobScheduler.userJobsTable}"
var="row"
emptyText="No rows"
rowBandingInterval="1"
rows="3">
<tr:column headerText="N°">
<tr:outputText value="#{row.job}"/>
</tr:column>
</tr:table>

The userJobsTable property is a java.Util.List.
I know that there is a param first in the table tags, but I don't know,
which value I must set to it, ...
Thanks in advance.
Mike 
-- 
View this message in context: http://www.nabble.com/Trinidad-Table-range-navigation-problem-tp14878960p14878960.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad Table range navigation problem

Posted by Ravindra Adireddy <ad...@gmail.com>.
is navigation panel rendered? if not make sure your table has more then 3 rows

On Jan 16, 2008 6:00 PM, mikeatx <mi...@compass-consulting.net> wrote:
>
> Hi,
> I'm using Trinidad components, I try to display a table with range
> navigation but the range navigation don't work, the first range is always
> displayed. Must I implement some business myself?
> Here is my jspx code:
>
> <tr:table value="#{jobScheduler.userJobsTable}"
> var="row"
> emptyText="No rows"
> rowBandingInterval="1"
> rows="3">
> <tr:column headerText="N°">
> <tr:outputText value="#{row.job}"/>
> </tr:column>
> </tr:table>
>
> The userJobsTable property is a java.Util.List.
> I know that there is a param first in the table tags, but I don't know,
> which value I must set to it, ...
> Thanks in advance.
> Mike
> --
> View this message in context: http://www.nabble.com/Trinidad-Table-range-navigation-problem-tp14878960p14878960.html
> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>
>



-- 
Thanks and Regards
Ravindra Adireddy

Re: Trinidad Table range navigation problem

Posted by mikeatx <mi...@compass-consulting.net>.
Thanks for you answers.
I've resolved my problem.
The following tag in my page cause the error:

<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
         
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
          doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"/>

I've removed it and it work great now !

Mike


mikeatx wrote:
> 
> Hi,
> I'm using Trinidad components, I try to display a table with range
> navigation but the range navigation don't work, the first range is always
> displayed. Must I implement some business myself?
> Here is my jspx code:
> 
> <tr:table value="#{jobScheduler.userJobsTable}"
> var="row"
> emptyText="No rows"
> rowBandingInterval="1"
> rows="3">
> <tr:column headerText="N°">
> <tr:outputText value="#{row.job}"/>
> </tr:column>
> </tr:table>
> 
> The userJobsTable property is a java.Util.List.
> I know that there is a param first in the table tags, but I don't know,
> which value I must set to it, ...
> Thanks in advance.
> Mike 
> 

-- 
View this message in context: http://www.nabble.com/Trinidad-Table-range-navigation-problem-tp14878960p14913550.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: Trinidad Table range navigation problem

Posted by Max Starets <ma...@oracle.com>.
Mike,

You do not need to set "first" to get navigation to work.
How many records does your userJobsTable have?
Are you saying that table does not navigate to the new range when
you click "next"?

Regards,
Max Starets
 
mikeatx wrote:
> Hi,
> I'm using Trinidad components, I try to display a table with range
> navigation but the range navigation don't work, the first range is always
> displayed. Must I implement some business myself?
> Here is my jspx code:
>
> <tr:table value="#{jobScheduler.userJobsTable}"
> var="row"
> emptyText="No rows"
> rowBandingInterval="1"
> rows="3">
> <tr:column headerText="N°">
> <tr:outputText value="#{row.job}"/>
> </tr:column>
> </tr:table>
>
> The userJobsTable property is a java.Util.List.
> I know that there is a param first in the table tags, but I don't know,
> which value I must set to it, ...
> Thanks in advance.
> Mike 
>   


Re: [Trinidad] trinidad:table losting pagination

Posted by Alessandro Lazarotti <al...@siq.com.br>.
By default, the entire project uses ajax4jsf for ajax here in the company.
For now I use PPR (as workaround), but I would like to know why a4j not 
worked with trinidad:table pagination.

Thanks


Gerhard Petracek escreveu:
> hello alessandro,
>
> why don't you use the ppr (ajax) feature of trinidad.
>
> regards,
> gerhard
>
>
>
> 2008/1/16, Alessandro Lazarotti < alessandro@siq.com.br 
> <ma...@siq.com.br>>:
>
>     My project uses ajax4jsf to submit ajax.
>     When must submit a form and update a trinidad: table, the pagination
>     disappears.
>
>     Why a4j:commandButton with reRender for trinidad table lost
>     pagination ?
>
>     Thanks
>     Alessandro Lazarotti
>
>
>
>
> -- 
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces 

Re: [Trinidad] trinidad:table losting pagination

Posted by Gerhard Petracek <ge...@gmail.com>.
hello alessandro,

why don't you use the ppr (ajax) feature of trinidad.

regards,
gerhard



2008/1/16, Alessandro Lazarotti <al...@siq.com.br>:
>
> My project uses ajax4jsf to submit ajax.
> When must submit a form and update a trinidad: table, the pagination
> disappears.
>
> Why a4j:commandButton with reRender for trinidad table lost pagination ?
>
> Thanks
> Alessandro Lazarotti
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

RE: [Trinidad] MissingResourceException

Posted by Mathias Walter <ma...@gmx.net>.
Hi,
 
Gerhard, you are right. I made a mistake and created a recursion:
 
<tr:commandLink id="edit" binding="#{cm.editLink}"
actionListener="#{cm.edit}" text="Edit" partialSubmit="true"
rendered="#{cm.visibleOnly}" immediate="true"/>

and the bean function:
 
public boolean isVisibleOnly() {
    if (editLink != null && !editLink.isRendered())
        visibleOnly = false;
    return visibleOnly;
}

Since the rendered el expression calls isVisibleOnly and this function calls
isRendered of the same component, a recursion occurs.
 
My initial problem is that IE 6 does not display partially renderend pages
correctly, if I use the back button immediately followed by the forward
button. Is that a knowing problem? I tried to disable caching without luck.
 
--
Kind regards,
Mathias

-----Original Message-----
From: Gerhard Petracek [mailto:gerhard.petracek@gmail.com] 
Sent: Thursday, January 17, 2008 4:49 PM
To: MyFaces Discussion
Subject: Re: [Trinidad] MissingResourceException


hello mathias,

as matthias already mentioned:
please provide detailed information.


so the following part is just a guess:

it sounds like you have an invalid page. 
please have a second look at your page and the used el expressions.

alternative:
please have a look at the el-impl you are using.
does the (binary) jar file contain the following file?
com\sun\el\Messages.properties 

if it is missing you can use the following workaround:
use the Messages.properties file of the el-impl sources jar file.
-> add the file to the classpath (don't forget the package)
-> result: com.sun.el.Messages will be available

-> you will see an error message which describes the real problem (instead
of the MissingResourceException).

regards,
gerhard




2008/1/16, Matthias Wessendorf < matzew@apache.org>: 

can u provide some more stack? 

-M

On Jan 16, 2008 1:22 PM, Mathias Walter <ma...@gmx.net> wrote:
> Hi,
>
> I've declared:
>
> private org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink 
> editLink;
>
> Than I bound a commandLink to this backing beans variable.
>
> In a backing bean method I'm calling:
>
>                 if (editLink != null && editLink.isRendered ())
>
> If I request the page, I get the following error:
>
> java.util.MissingResourceException: Can't find bundle for base name
> javax.el.LocalStrings, locale de_DE
>
>
> If I comment out "editLink.isRendered()", it works well.
>
> What's wrong?
>
> BTW: I'm using Trinidad 1.2.5 with JSF 1.2 RI.
>
> --
> Kind regards,
> Mathias 
>
>



--
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org





-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and 
Courses in English and German

Professional Support for Apache MyFaces 


Re: [Trinidad] MissingResourceException

Posted by Gerhard Petracek <ge...@gmail.com>.
hello mathias,

as matthias already mentioned:
please provide detailed information.


so the following part is just a guess:

it sounds like you have an invalid page.
please have a second look at your page and the used el expressions.

alternative:
please have a look at the el-impl you are using.
does the (binary) jar file contain the following file?
com\sun\el\Messages.properties

if it is missing you can use the following workaround:
use the Messages.properties file of the el-impl sources jar file.
-> add the file to the classpath (don't forget the package)
-> result: com.sun.el.Messages will be available

-> you will see an error message which describes the real problem (instead
of the MissingResourceException).

regards,
gerhard



2008/1/16, Matthias Wessendorf <ma...@apache.org>:
>
> can u provide some more stack?
>
> -M
>
> On Jan 16, 2008 1:22 PM, Mathias Walter <ma...@gmx.net> wrote:
> > Hi,
> >
> > I've declared:
> >
> > private org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink
> > editLink;
> >
> > Than I bound a commandLink to this backing beans variable.
> >
> > In a backing bean method I'm calling:
> >
> >                 if (editLink != null && editLink.isRendered())
> >
> > If I request the page, I get the following error:
> >
> > java.util.MissingResourceException: Can't find bundle for base name
> > javax.el.LocalStrings, locale de_DE
> >
> >
> > If I comment out "editLink.isRendered()", it works well.
> >
> > What's wrong?
> >
> > BTW: I'm using Trinidad 1.2.5 with JSF 1.2 RI.
> >
> > --
> > Kind regards,
> > Mathias
> >
> >
>
>
>
> --
> Matthias Wessendorf
>
> further stuff:
> blog: http://matthiaswessendorf.wordpress.com/
> sessions: http://www.slideshare.net/mwessendorf
> mail: matzew-at-apache-dot-org
>



-- 

http://www.irian.at

Your JSF powerhouse -
JSF Consulting, Development and
Courses in English and German

Professional Support for Apache MyFaces

Re: [Trinidad] MissingResourceException

Posted by Matthias Wessendorf <ma...@apache.org>.
can u provide some more stack?

-M

On Jan 16, 2008 1:22 PM, Mathias Walter <ma...@gmx.net> wrote:
> Hi,
>
> I've declared:
>
> private org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink
> editLink;
>
> Than I bound a commandLink to this backing beans variable.
>
> In a backing bean method I'm calling:
>
>                 if (editLink != null && editLink.isRendered())
>
> If I request the page, I get the following error:
>
> java.util.MissingResourceException: Can't find bundle for base name
> javax.el.LocalStrings, locale de_DE
>
>
> If I comment out "editLink.isRendered()", it works well.
>
> What's wrong?
>
> BTW: I'm using Trinidad 1.2.5 with JSF 1.2 RI.
>
> --
> Kind regards,
> Mathias
>
>



-- 
Matthias Wessendorf

further stuff:
blog: http://matthiaswessendorf.wordpress.com/
sessions: http://www.slideshare.net/mwessendorf
mail: matzew-at-apache-dot-org

RE: conversion in jsf

Posted by Yaron Spektor <ya...@b6systems.com>.
Thanks for your answer,

I Googled it and found your article about customizing it for JSF.

I was wondering though, can I get the default property resolver to work
for me in cases where I do not use the binding (I am creating a
framework that does not use the concept of binding but would like to
engage the existing JSF code to do the job for it)

Any hints would be great.

 

Yaron 

 

________________________________

From: Cagatay Civici [mailto:cagatay.civici@gmail.com] 
Sent: Wednesday, January 16, 2008 5:46 PM
To: MyFaces Discussion
Subject: Re: conversion in jsf

 

When you bind sth, like #{mybean.someInteger}

The property resolver resolves the type of someInteger property to an
integer, and later this is used to figure out the necessary converter to
use automatically, in this case it is numberconverter to convert the
submitted string value to an integer. This is same in other cases. 

In order to override this process, write a converter and add it via
<f:converter tag or the converter attribute. So your converter will be
picked before jsf tries to identify a converter by type.

Cagatay 

On Jan 17, 2008 12:10 AM, Yaron Spektor <ya...@b6systems.com>
wrote:

Hi ,
I was wondering about the conversion mechanism that is done
automatically in jsf.
When I bind a value to an input field, for example, how and where in the
code does JSF realize which converter to setup ( Long or a String etc.) 
I see it is doing it, I know how to override it but I am interested to
know the inside details of it.

Thanks,
Yaron

 


Re: conversion in jsf

Posted by Cagatay Civici <ca...@gmail.com>.
When you bind sth, like #{mybean.someInteger}

The property resolver resolves the type of someInteger property to an
integer, and later this is used to figure out the necessary converter to use
automatically, in this case it is numberconverter to convert the submitted
string value to an integer. This is same in other cases.

In order to override this process, write a converter and add it via
<f:converter tag or the converter attribute. So your converter will be
picked before jsf tries to identify a converter by type.

Cagatay

On Jan 17, 2008 12:10 AM, Yaron Spektor <ya...@b6systems.com> wrote:

> Hi ,
> I was wondering about the conversion mechanism that is done
> automatically in jsf.
> When I bind a value to an input field, for example, how and where in the
> code does JSF realize which converter to setup ( Long or a String etc.)
> I see it is doing it, I know how to override it but I am interested to
> know the inside details of it.
>
> Thanks,
> Yaron
>
>

conversion in jsf

Posted by Yaron Spektor <ya...@b6systems.com>.
Hi ,
I was wondering about the conversion mechanism that is done
automatically in jsf.
When I bind a value to an input field, for example, how and where in the
code does JSF realize which converter to setup ( Long or a String etc.)
I see it is doing it, I know how to override it but I am interested to
know the inside details of it.

Thanks,
Yaron 


[Trinidad] MissingResourceException

Posted by Mathias Walter <ma...@gmx.net>.
Hi,

I've declared:

private org.apache.myfaces.trinidad.component.core.nav.CoreCommandLink
editLink;

Than I bound a commandLink to this backing beans variable.

In a backing bean method I'm calling:

		if (editLink != null && editLink.isRendered())

If I request the page, I get the following error:

java.util.MissingResourceException: Can't find bundle for base name
javax.el.LocalStrings, locale de_DE


If I comment out "editLink.isRendered()", it works well.

What's wrong?

BTW: I'm using Trinidad 1.2.5 with JSF 1.2 RI.

--
Kind regards,
Mathias


[Trinidad] trinidad:table losting pagination

Posted by Alessandro Lazarotti <al...@siq.com.br>.
My project uses ajax4jsf to submit ajax.
When must submit a form and update a trinidad: table, the pagination 
disappears.

Why a4j:commandButton with reRender for trinidad table lost pagination ?

Thanks
Alessandro Lazarotti