Re: actionListener not invoked

2006-03-21 Thread Murat Hazer
Hi,Let me explain the problem briefly; Enable Edit link (id="link2") is always rendered on the page, when user clicks this link the Edit link's (id="link1")' rendered attribute converted false to true, now at that time two links rendered on the page. If i don't use savestate (another solution is put the backer bean to the session scope, but i think it is not very clever solution), the Edit link's (id="link1") actionListener isn't invoked(actionListener="#{
backer.edit}"). (but you can see the code to invoke the method in the source of the generated html page, this was confused my mind). As i told in the question problem solution is very easy but it is a little confusing.
RegardsOn 3/22/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
I am confused by the response.  if back.enabled was false, he would notbe able to click the commanLink, would he?It sounds like he was saying backer.edit was not working.  Maybe myquestion is a stupid question from a newb(me), but could you explain
that response more so I can understand.thanks,deanMike Kienenberger wrote:>My guess is that you are not persisting the value of #{back.enabled}>between requests.>>In order for a UICommand to work, it must remain enabled
>(rendered=true) from the first request renderResponse phase to the>next request's invokeApplication phase.>>Maybe all you need to do is use t:saveState on #{back.enabled}.>>On 3/21/06, Murat Hazer <
[EMAIL PROTECTED]> wrote:A simple page has two links>>rendered="#{back.enabled}" />>> >>value="Enable Edit" />
When the enable edit link is cliked 'enabled' property of the backing bean>>is changed to true so that the Edit link is rendered. The problem is that>>once the Edit link is rendered, it's method binding doesn't work. The edit
>>method is never called when I click the link (or button). Why does this>>happen?>>-->>Murat HAZER>>Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer>>Tel - Phone: +90 222 335 05 80 - 1395
>>Cep Tel - Mobile Phone: +90 532 472 00 63>>Blog URL: http://www.projedunyasi.org>>Yahoo Group:>>
http://groups.yahoo.com/group/malatyafenlisesi/>>>-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: http://www.projedunyasi.orgYahoo Group: 
http://groups.yahoo.com/group/malatyafenlisesi/


Re: Resetting DataScroller

2006-03-21 Thread Greg
Your search field would probably need a valueChangeListener method
which if residing in xBean then whatever xBean.aTable is returning,
i.e. the IUData component, then can set the first row to be shown as
zero, i.e. UIData.setFirst(0);

I'd be interested to know how many times per request the db query is
being executed for your table data, given that you're also sorting on
the columns, from what I've gone through, your question about reseting
the row index would of been needed to prevent duplicate queries when
sorting the dataTable ? Also, Is your xBean in the session or request
scope ?


Re: disable back button?

2006-03-21 Thread Dennis Byrne
>Also, I am not a big fan of client side state due to security and performance.

http://wiki.apache.org/myfaces/Secure_Your_Application

>I just hope that Sun figures out a way to have multiple view server
>side states. 

  
Only applicable if state saving method is "server"
(=default). Defines the amount (default = 20) of the latest views 
 are stored in session.
org.apache.myfaces.NUMBER_OF_VIEWS_IN_SESSION
20
  

Enjoy MyFaces ;)

Dennis Byrne




Re: disable back button?

2006-03-21 Thread Craig McClanahan
On 3/21/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
As for me, I can't use client side state saving because ofAjaxAnywhere. I needed multiple AJAX zones inside of my form.Unfortunately (with facelets at least) state is saved right below theform. So with AA and client side state, my state was never updated due
to the fact it was outside of the area AJAX was updating.Also, I am not a big fan of client side state due to security and performance.I just hope that Sun figures out a way to have multiple view server
side states. JBoss Seam (which I am using) fixes this forbacking-beans but not for the component tree.For the JSF RI, there has always been support for multiple view states, but only for separate page URLs.  This got addressed in version 
1.2.However, it's not just up to Sun ... the MyFaces implementation of server side state saving is up to the MyFaces developers :-).
-AndrewCraig On 3/21/06, Vladimir Coutinho <
[EMAIL PROTECTED]> wrote:> There are others problems saving state in the client?>>> On 3/21/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
> > wow!!! thanks for all the response.> > cool,> > dean> >> > Aleksei Valikov wrote:> >> > > Hi.> > >> > > > 3. Use client-side state saving. Then, when users go back, they also
> go> > > > back to the old state (serialized on the client side).> > > >> > >> > >> We're using the 3rd choice, with no problems.  Incidentally, the third
> > >> choice also works nicely if you use pop-up windows and then return to> > >> the "main" window.> > >> > >> > > This won't work for me. I simply can't switch to the client-side state
> > > saving method.> > >> > > * I have very large component trees with hundreds of components. it> > > would be a killer to serialize and de-serialize them on each request.
> > > * I use a lot of unserializable value/method bindings.> > >> > > Bye.> > > /lexi> >> >> >> --
> Vladimir M Coutinho


Re: disable back button?

2006-03-21 Thread Andrew Robinson
As for me, I can't use client side state saving because of
AjaxAnywhere. I needed multiple AJAX zones inside of my form.
Unfortunately (with facelets at least) state is saved right below the
form. So with AA and client side state, my state was never updated due
to the fact it was outside of the area AJAX was updating.

Also, I am not a big fan of client side state due to security and performance.

I just hope that Sun figures out a way to have multiple view server
side states. JBoss Seam (which I am using) fixes this for
backing-beans but not for the component tree.

-Andrew

On 3/21/06, Vladimir Coutinho <[EMAIL PROTECTED]> wrote:
> There are others problems saving state in the client?
>
>
> On 3/21/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
> > wow!!! thanks for all the response.
> > cool,
> > dean
> >
> > Aleksei Valikov wrote:
> >
> > > Hi.
> > >
> > > > 3. Use client-side state saving. Then, when users go back, they also
> go
> > > > back to the old state (serialized on the client side).
> > > >
> > >
> > >> We're using the 3rd choice, with no problems.  Incidentally, the third
> > >> choice also works nicely if you use pop-up windows and then return to
> > >> the "main" window.
> > >
> > >
> > > This won't work for me. I simply can't switch to the client-side state
> > > saving method.
> > >
> > > * I have very large component trees with hundreds of components. it
> > > would be a killer to serialize and de-serialize them on each request.
> > > * I use a lot of unserializable value/method bindings.
> > >
> > > Bye.
> > > /lexi
> >
> >
> >
>
>
>
>
> --
> Vladimir M Coutinho


Re: disable back button?

2006-03-21 Thread Vladimir Coutinho
There are others problems saving state in the client?On 3/21/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
wow!!! thanks for all the response.cool,deanAleksei Valikov wrote:> Hi.
>> > 3. Use client-side state saving. Then, when users go back, they also go> > back to the old state (serialized on the client side).>  We're using the 3rd choice, with no problems.  Incidentally, the third
>> choice also works nicely if you use pop-up windows and then return to>> the "main" window.>>> This won't work for me. I simply can't switch to the client-side state
> saving method.>> * I have very large component trees with hundreds of components. it> would be a killer to serialize and de-serialize them on each request.> * I use a lot of unserializable value/method bindings.
>> Bye.> /lexi-- Vladimir M Coutinho


Re: examples...no logging?

2006-03-21 Thread Dean Hiller

huh, I was just trying
org.apache.myfaces.level=FINEST
and
javax.faces.level=FINEST
and
biz.xsoftware.level=FINEST

in a logging.properties file I copied off the bottom of this tomcat 
page( http://tomcat.apache.org/tomcat-5.5-doc/logging.html ) and placed 
in my WEB-INF/classes directory. All three above did not log(though my 
biz.xsoftware has some logs at the info level that logged correctly).


MAYBE SOMEONE could just paste their logging.properties file in here and 
I can copy that into WEB-INF/classes and see if that works and go from 
there?

(I did not see much on the wiki on this either unfortunately)
thanks,
dean

Dennis Byrne wrote:


MyFaces lost some logging value when we went to a build process that changed 
many of the package names.  For example, if you want to get the logs for 
org.apache.myfaces.shared.util.StateUtils, you now must configure your logging 
provider with the following:

org.apache.myfaces.shared_impl.util.StateUtils
org.apache.myfaces.shared_tomahawk.util.StateUtils

Dennis Byrne

 


-Original Message-
From: Dean Hiller [mailto:[EMAIL PROTECTED]
Sent: Tuesday, March 21, 2006 07:04 AM
To: 'MyFaces Discussion'
Subject: examples...no logging?

It would be great if someone could add logging at the fine level to one 
of the examples.  I have been trying for days to get logging working(I 
must be a moron or something).  I just can't get it to work on tomcat 
5.5.16.  I could copy one of the examples if they had logging in them 
which enabled

1. some logging for myfaces
2. some logging for the app itself

currently, I can put jdk log statements in at the info level and they 
will get logged, but I don't know how to see the finest/finer/fine 
statements.

thanks for any help here,  It would be extremely appreciated.
dean



   





 





Re: actionListener not invoked

2006-03-21 Thread Dean Hiller
I am confused by the response.  if back.enabled was false, he would not 
be able to click the commanLink, would he?


It sounds like he was saying backer.edit was not working.  Maybe my 
question is a stupid question from a newb(me), but could you explain 
that response more so I can understand.

thanks,
dean

Mike Kienenberger wrote:


My guess is that you are not persisting the value of #{back.enabled}
between requests.

In order for a UICommand to work, it must remain enabled
(rendered=true) from the first request renderResponse phase to the
next request's invokeApplication phase.

Maybe all you need to do is use t:saveState on #{back.enabled}.

On 3/21/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
 


A simple page has two links




When the enable edit link is cliked 'enabled' property of the backing bean
is changed to true so that the Edit link is rendered. The problem is that
once the Edit link is rendered, it's method binding doesn't work. The edit
method is never called when I click the link (or button). Why does this
happen?
--
Murat HAZER
Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
Tel - Phone: +90 222 335 05 80 - 1395
Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.org
Yahoo Group:
http://groups.yahoo.com/group/malatyafenlisesi/
   



 





Re: disable back button?

2006-03-21 Thread Dean Hiller

wow!!! thanks for all the response.
cool,
dean

Aleksei Valikov wrote:


Hi.

> 3. Use client-side state saving. Then, when users go back, they also go
> back to the old state (serialized on the client side).
>


We're using the 3rd choice, with no problems.  Incidentally, the third
choice also works nicely if you use pop-up windows and then return to
the "main" window.



This won't work for me. I simply can't switch to the client-side state 
saving method.


* I have very large component trees with hundreds of components. it 
would be a killer to serialize and de-serialize them on each request.

* I use a lot of unserializable value/method bindings.

Bye.
/lexi





Trying to use either s:selectManyPicklist OR af:selectManyShuttle

2006-03-21 Thread Robert J. Miller
Hello,

I am successfully (and happily) using MyFaces tomahawk and sandbox
components with Tiles integration as suggested on your web site.  I
would really like to use a "selectManyPicklist" component.  I was
wondering if someone could help complete either of these two options:

1) If someone could e-mail me a sandbox.jar or tell where I can download
a sandbox.jar that includes the s:selectManyPicklist as described here:
http://myfaces.apache.org/sandbox/selectManyPicklist.html

OR 

2) Confirm or deny that I should be able to use MyFaces tomahawk and ADF
faces components at the same time with Tiles integration.  ADF has a
similar picklist, af:selectManyShuttle,
http://www.oracle.com/technology/products/jdev/htdocs/partners/addins/ex
change/jsf/doc/tagdoc/core/selectManyShuttle.html . Unfortunately, I am
only able to get either the ADF components OR the tomahawk components
working, but never both at the same time (at least not a 100%).  And I
have had zero luck getting Tiles working while trying to use Tomahawk
and ADF at the same time.

I am using MyFaces 1.1, Tomcat 5.0.28, and Java 1.4.2.

Thanks,
Rob Miller





Re: solution to exception(bad error message here)

2006-03-21 Thread Dean Hiller
I don't know jsp notation actually, and actually below I was trying to 
say "The solution was I named the backing bean incorrectly" not that I 
was using jsp notation.  Sorry as I am sometimes not good at being clear 
about this.  I was just posting the solution in case someone else ran 
into it.

dean

Mike Kienenberger wrote:


Perhaps you were referencing the bean using JSP notation instead of
JSF notation?
If that's the case, you'll only get errors from the container's JSP compiler.

On 3/20/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
 


The solution to my earlier exception was I named the backing bean
incorrectly.  funny that I did not get bean not exist error(I think I
remember getting one from JSF before).  Anyways in this case I had a
backing bean misnamed in faces-config.xml and I get the very
uninformitive exception of.(there was nothing in the tomcat logs).


javax.servlet.ServletException: org.apache.jasper.JasperException
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)


*root cause*

javax.faces.FacesException: org.apache.jasper.JasperException

org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)


org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)


org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
   javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)

org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)





   



 





Resetting DataScroller

2006-03-21 Thread Travis Reeder
I am filtering the data in a datatable so the backing datamodel shrinks, but if a user has already paged past the first page and the size of the data is less then a single page, it appears that the datascroller stays on the second (or later) page.
For example, there are 15 items in the data model at first and we're showing 10 per page.  Then the user clicks to the second page to see the last 5 items.  Now if the user then searches at that point and the the result set is only say size 1, the list will be empty because it is still on page 2.  If you click back a page, you'll see the item.  
I have preserveDataModel="false" on the datatable.Is there any trick to this that I might have missed?Here's the definitions:    id="xTable"    binding="#{
xBean.aTable}"    value="#{xBean.y}"    var="x"    sortColumn="#{xBean.xListSortColumn}"    sortAscending="#{xBean.xListSortAscending}"    rowIndexVar="rowIndex"
    rowCountVar="rowCount"    rows="#{xBean.numRowsPerPage}"    preserveDataModel="false"    > for=""
    fastStep="10"    pageCountVar="pageCount"    pageIndexVar="pageIndex"    styleClass="scroller"
    paginator="true"    paginatorMaxPages="9"    paginatorTableClass="paginator"    paginatorActiveColumnStyle="font-weight:bold;"
    immediate="false"    binding="#{xBean.dataScroller}">Travis


Re: Do I need to set up .jspx extentions in my web.xml?

2006-03-21 Thread Mike Kienenberger
You are only allowed to have one suffix with the default JSF implementation.

 
javax.faces.DEFAULT_SUFFIX
.jsp


or

 
javax.faces.DEFAULT_SUFFIX
.jspx


You could create your own view handler that does this.  Facelets
delegates non-facelets file extensions back to the default viewhandler
so that it can support both .xhtml and .jspx (for example).

It'd seem like it'd be fairly simple to extend the default viewhandler
functionality to try two suffixes instead of one.

There's been interest (for this very reason) expressed by others in
the last week for the same functionality.   Search through the past
week's myafces-users list for DEFAULT_SUFFIX to find the threads.


On 3/21/06, James Reynolds <[EMAIL PROTECTED]> wrote:
>
> I'm in the process of converting my jsp files to jspx.  I set up one
> test case and I was surprised by a 404 error.  Do I need to add some
> configuration in my web.xml?  In my faces-config I have:
>
> 
>/welcome.jsp
>
>go_template
>/template.jspx
>
> 
>
>
> ***But the error I receive indicates that Tomcat is looking for a jsp
> extention:***
>
> HTTP Status 404 - /template.jsp
>
> 
> 
>
> type Status report
>
> message /template.jsp
>
> description The requested resource (/template.jsp) is not available.
>
>
> 
> 
>
> Apache Tomcat/5.5.15
>
>
>
>


Do I need to set up .jspx extentions in my web.xml?

2006-03-21 Thread James Reynolds

I'm in the process of converting my jsp files to jspx.  I set up one
test case and I was surprised by a 404 error.  Do I need to add some
configuration in my web.xml?  In my faces-config I have:


   /welcome.jsp
   
   go_template
   /template.jspx
   



***But the error I receive indicates that Tomcat is looking for a jsp
extention:***

HTTP Status 404 - /template.jsp




type Status report

message /template.jsp

description The requested resource (/template.jsp) is not available.





Apache Tomcat/5.5.15





Re: tobago stable release

2006-03-21 Thread Stefan Hedtfeld
Hi Bernd,

I must admit that I agree with Iryna - it would make life much easier
for all projects using tobago (and providing feedback - thats what we
all are interested in!) if there was a release available - better call
it "labled version". That way everyone could decide (on a per project
level) when to switch to some new features or resolved bugs. Isn't there
a way to at least provide something below the 1.0.7 version (call it
whatever you like  "alpha", "beta", "RC1")?

Regards,

Stefan.


Bernd Bohmann schrieb:
> This is a good question.
>
> We are very close to a release but a release before leaving incubator
> needs an approval of the Incubator PMC.
>
> Please look at the roadmap on the project page.
> The roadmap contains all task that we like to finished before a release.
> Maybe we are moving some tasks to the next release.
>
> Regards
>
> Bernd
>
>
>
> Iryna Stetska schrieb:
>> Tobago team,
>>
>> When are you going to make stable official release?
>>
>> We would like our application to stick to some definite version and
>> not to update tobago and deal with changes (like deprecated
>> components) every time something is changed or fixed.
>> Releases would also give release notes and list of what have been done.
>>
>> Thanks,
>> Ira
>>
>>
>



RE: how to set ROWS attribute in t:dataTable using Resource Bundle ?

2006-03-21 Thread James Reynolds

I haven't tried what you're proposing, but I've accomplished the same
thing through the backing bean using prepared statements like thus:

PreparedStatement ps = conn.prepareStatement(sql);
ps.setMaxRows(2);

If you must store the value in a properties file.  Maybe you could
replace the digit above with a variable reference to your properties
key.



-Original Message-
From: news [mailto:[EMAIL PROTECTED] On Behalf Of sunil
Sent: Tuesday, March 21, 2006 3:45 PM
To: users@myfaces.apache.org
Subject: how to set ROWS attribute in t:dataTable using Resource Bundle
?

Hi,

I want to limit the No. of Rows that can be displayed in the table by
using the Value from the Resource Bundle (something like below ):

#JSP page


# Resource bundle File
MaxRecordsDisplayed_PerPage=20

But I am getting a ClassCastException in doing this. I was under the
impression the Expression language does the casting implicitly. ROWS
attribute needs an Integer value but since the value being retrieved
from Bundle is as a String, its causing this Exception :

java.lang.ClassCastException
at javax.faces.component.UIData.getRows(UIData.java:770)
at


Is there any other way other than using a getter from the Backing Bean ?

Thanks,
Sunil




how to set ROWS attribute in t:dataTable using Resource Bundle ?

2006-03-21 Thread sunil
Hi,

I want to limit the No. of Rows that can be displayed in the table by using the
Value from the Resource Bundle (something like below ):

#JSP page


# Resource bundle File
MaxRecordsDisplayed_PerPage=20

But I am getting a ClassCastException in doing this. I was under the impression
the Expression language does the casting implicitly. ROWS attribute needs an
Integer value but since the value being retrieved from Bundle is as a String,
its causing this Exception :

java.lang.ClassCastException
at javax.faces.component.UIData.getRows(UIData.java:770)
at


Is there any other way other than using a getter from the Backing Bean ?

Thanks,
Sunil



Re: tobago stable release

2006-03-21 Thread Bernd Bohmann

This is a good question.

We are very close to a release but a release before leaving incubator 
needs an approval of the Incubator PMC.


Please look at the roadmap on the project page.
The roadmap contains all task that we like to finished before a release.
Maybe we are moving some tasks to the next release.

Regards

Bernd



Iryna Stetska schrieb:

Tobago team,

When are you going to make stable official release?

We would like our application to stick to some definite version and
not to update tobago and deal with changes (like deprecated
components) every time something is changed or fixed.
Releases would also give release notes and list of what have been done.

Thanks,
Ira




--
Dipl.-Ing. Bernd Bohmann - Atanion GmbH - Software Development
Bismarckstr. 13, 26122 Oldenburg, http://www.atanion.com
phone: +49 441 4082312, mobile: +49 173 8839471, fax: +49 441 4082333



Re: actionListener not invoked

2006-03-21 Thread Murat Hazer
Thanks for all answers, i solved the problem with t:savestate. (also al80 on the IRC channel helped me to solve the problem.)On 3/21/06, Dennis Byrne <
[EMAIL PROTECTED]> wrote: (You may want to look on the wiki for this.  Find the "FAQ" section and scroll all the way to the bottom.
Dennis Byrne>-Original Message->From: Murat Hazer [mailto:[EMAIL PROTECTED]]>Sent: Tuesday, March 21, 2006 07:10 AM>To: 
users@myfaces.apache.org>Subject: actionListener not invoked>>A simple page has two links>>>rendered="#{back.enabled}" />>>value="Enable Edit" />>>When the enable edit link is cliked 'enabled' property of the backing bean
>is changed to true so that the Edit link is rendered. The problem is that>once the Edit link is rendered, it's method binding doesn't work. The edit>method is never called when I click the link (or button). Why does this
>happen?>-->Murat HAZER>Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer>Tel - Phone: +90 222 335 05 80 - 1395>Cep Tel - Mobile Phone: +90 532 472 00 63>Blog URL: 
http://www.projedunyasi.org>Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/>
-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63Blog URL: 
http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/


Re: inputCalendar problem

2006-03-21 Thread Martin Marinschek
if you use the s:convertDateTime converter, you're fine.

regards,

Martin

On 3/21/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote:
> Hi Matthias,
>
> actually I'm using the ADF calendar component - in the way described below,
>
> The calendar class picks up the CET locale ... but I'm not sure how and why.
>
>
> Frank Felix
>
>  label="#{bundle['...']}"
>   value="#{bean.date}"
> chooseId="validFrom" required="true">
> 
> 
>
> class Bean
> {
> Calendar myDate = ...
>
> public Date getDate()
> {
> return toNormalizedDate(myDate);
> }
>
> public void setDate(Date date)
> {
> myDate = fromNormalizedDate(date);
> }
> }
>
> -Original Message-
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, March 21, 2006 6:16 PM
> To: MyFaces Discussion
> Subject: AW: inputCalendar problem
>
>
> > Hi Matthias,
> >
> > I use the methods below to convert back and forth.
> >
> > Because our app uses java.util.Calendar, the method "toNormalizedDate"
> > is used to convert the calendar to a date suitable for JSF, and
> > "fromNormalizedDate" to convert it back.
>
> Many thanks. So you don't use the convertDateTime action at all? And how do
> I switch to using the Europe/Berlin TimeZone?
>
> -Matthias
>
>
> > Frank Felix
> >
> >   /**
> >* Required to work around a bug in ADF/JSF, where
> >* dates are always normalized to GMT, and then time
> >* is set to 0, resulting in a change of date for all
> >* time zones before GMT.
> >*
> >* @param calendar
> >* @return normalized date
> >*/
> >   @SuppressWarnings("deprecation")
> >   public static Date toNormalizedDate(Calendar calendar)
> >   {
> >   return calendar==null ? null : new Date(
> >   Date.UTC(
> >   calendar.get(Calendar.YEAR)-1900,
> >   calendar.get(Calendar.MONTH),
> >   calendar.get(Calendar.DATE),
> >   0,
> >   0,
> >   0
> >   )
> >   );
> >   }
> >
> >   /**
> >* Required to work around a bug in ADF/JSF, where
> >* dates are always normalized to GMT, and then time
> >* is set to 0, resulting in a change of date for all
> >* time zones before GMT.
> >*
> >* @param date the date to copy from
> >*/
> >   @SuppressWarnings("deprecation")
> >   public static Calendar fromNormalizedDate(Date date)
> >   {
> >   if (date==null)
> >   {
> >   return null;
> >   }
> >   return new GregorianCalendar(
> >   date.getDate(),
> >   date.getYear()+1900),
> >   date.getMonth()
> >   );
> >   }
> >
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


Re: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together

2006-03-21 Thread Adam Winer
I confess, I haven't tried Tiles with ADF, largely because Facelets templating
is so vastly superior to Tiles (esp. Tiles w/JSF, which is not a good
combination.)

I'm curious about this class-cast exception you're seeing:  why do
you have a UIXComponentTag that isn't using a UIXComponent?
What tag was this?

-- Adam



On 3/21/06, Marcel Soulier <[EMAIL PROTECTED]> wrote:
> Hi,
>
> so far I have only used MyFaces and currently I am trying to use the 
> ADF-Faces Components with it.
>
> The impression I had about using Tiles with ADF and MyFaces was that I should 
> use the Tiles Servlet because ADF uses its own ViewHandler which would 
> collide with the MyFaces JspTilesViewHandler I used before.
>
> When I was reading Adam's way of setting an alternate ViewHandler in a 
> context-param I had the idea of using the MyFaces JspTilesViewHandlerImpl in 
> a similar way for my JSP-based application.
>
> It works quite well though I encountered a ClassCastException in the 
> UIXComponentTag class where a UIXComponent is needed in the setProperties 
> Method. So I put an "if(component instanceof UIXComponent)" inside this 
> Method and it worked.
>
> Now the reason for this posting is this:
>
> Am I going in the right direction here? Are there any side-effects with using 
> the MyFaces ViewHandler inside an ADF context?
>
> Or maybe there is a different way of getting the advantages of the 
> MyFacesViewHandler (e.g. direct usage of tiles-definitions in navigation 
> rules)?
>
> Maybe anyone here has already used the combination of JSPs, MyFaces, Tiles, 
> ADF and can give some advice.
>
> M.Soulier
>
> -Ursprüngliche Nachricht-
> Von: Adam Winer [mailto:[EMAIL PROTECTED]
> Gesendet: Dienstag, 21. März 2006 06:50
> An: MyFaces Discussion
> Betreff: Re: java.lang.NullPointerException during render phase when using 
> ADF and MyFaces Tomahwak components together
>
> Murray,
>
> You need to install the FaceletViewHandler using:
>
>  
>  oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER
>com.sun.facelets.FaceletViewHandler
>   
>
> in WEB-INF/web.xml, not in faces-config.xml.
>
> Also, not that it's related to this issue, you need to install the ADF Faces
> Filter.  Check out the config posted in the other thread for all the details.
>
> -- Adam
>
>
>
> On 3/20/06, Murray Brandon <[EMAIL PROTECTED]> wrote:
> > Apologies if this topic has been done to death in the group as I've just
> > joined.
> > I'm sure it's something to do with my configuration of web.xml or
> > faces-config.xml, but what?
> > Either the AdfRenderingContext isn't attached to the thread or
> > getProperties() is returning null.
> > I'm using the dump of ADF attached to the myfaces site (ie.
> > adf-faces-impl-ea20-SNAPSHOT).
> > I don't think it is trying to render any of the ADF tags (same null
> > pointer if I comment out the ADF tags),
> > this is on render of tomahawk/myfaces tags.
> >
> > Any help appreciated!
> >
> > Regards, Murray
> > 
> > ===
> >
> > SEVERE: Error Rendering View[/main.xhtml]
> > java.lang.NullPointerException
> > at
> > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingP
> > roperty(FacesRenderingContext.java:157)
> > at
> > oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setPropert
> > y(RenderedNodeRenderingContext.java:162)
> > at
> > oracle.adfinternal.view.faces.ui.RootRenderingContext.init(RootRendering
> > Context.java:81)
> > at
> > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.(FacesR
> > enderingContext.java:106)
> > at
> > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderi
> > ngContext(FacesRenderingContext.java:79)
> > at
> > oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingCont
> > ext(UINodeRendererBase.java:89)
> > at
> > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> > ontext(FacesRenderingContext.java:66)
> > at
> > oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> > ontext(FacesRenderingContext.java:52)
> > at
> > oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRend
> > eringContext(UINodeRenderer.java:79)
> > at
> > oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeB
> > egin(UINodeRenderer.java:38)
> > at
> > javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:5
> > 12)
> > at
> > com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> > ava:555)
> > at
> > com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> > ava:562)
> > at
> > com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> > ava:562)
> > at
> > com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:4
> > 57)
> > at
> > org.apache.myfaces.lifecycle.LifecycleI

RE: inputCalendar problem

2006-03-21 Thread Frank Felix Debatin
Hi Matthias, 

actually I'm using the ADF calendar component - in the way described below, 

The calendar class picks up the CET locale ... but I'm not sure how and why.


Frank Felix





class Bean 
{
Calendar myDate = ...

public Date getDate()
{
return toNormalizedDate(myDate);
}

public void setDate(Date date)
{
myDate = fromNormalizedDate(date);  
}
}

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 6:16 PM
To: MyFaces Discussion
Subject: AW: inputCalendar problem


> Hi Matthias,
>
> I use the methods below to convert back and forth.
>
> Because our app uses java.util.Calendar, the method "toNormalizedDate" 
> is used to convert the calendar to a date suitable for JSF, and 
> "fromNormalizedDate" to convert it back.

Many thanks. So you don't use the convertDateTime action at all? And how do
I switch to using the Europe/Berlin TimeZone?

-Matthias


> Frank Felix
>
>   /**
>* Required to work around a bug in ADF/JSF, where
>* dates are always normalized to GMT, and then time
>* is set to 0, resulting in a change of date for all
>* time zones before GMT.
>*
>* @param calendar
>* @return normalized date
>*/
>   @SuppressWarnings("deprecation")
>   public static Date toNormalizedDate(Calendar calendar)
>   {
>   return calendar==null ? null : new Date(
>   Date.UTC(
>   calendar.get(Calendar.YEAR)-1900,
>   calendar.get(Calendar.MONTH),
>   calendar.get(Calendar.DATE),
>   0,
>   0,
>   0
>   )
>   );
>   }
>
>   /**
>* Required to work around a bug in ADF/JSF, where
>* dates are always normalized to GMT, and then time
>* is set to 0, resulting in a change of date for all
>* time zones before GMT.
>*
>* @param date the date to copy from
>*/
>   @SuppressWarnings("deprecation")
>   public static Calendar fromNormalizedDate(Date date)
>   {
>   if (date==null)
>   {
>   return null;
>   }
>   return new GregorianCalendar(
>   date.getDate(),
>   date.getYear()+1900),
>   date.getMonth()
>   );
>   }
>



convertNumber

2006-03-21 Thread Vladimir Coutinho
I'm using   to save a integer property. But I'm getting conversion error when I type a number like 23,000    -- Vladimir M Coutinho


Re: actionListener not invoked

2006-03-21 Thread Dennis Byrne
You may want to look on the wiki for this.  Find the "FAQ" section and scroll 
all the way to the bottom.

Dennis Byrne

>-Original Message-
>From: Murat Hazer [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 21, 2006 07:10 AM
>To: users@myfaces.apache.org
>Subject: actionListener not invoked
>
>A simple page has two links
>
>rendered="#{back.enabled}" />
>value="Enable Edit" />
>
>When the enable edit link is cliked 'enabled' property of the backing bean
>is changed to true so that the Edit link is rendered. The problem is that
>once the Edit link is rendered, it's method binding doesn't work. The edit
>method is never called when I click the link (or button). Why does this
>happen?
>--
>Murat HAZER
>Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
>Tel - Phone: +90 222 335 05 80 - 1395
>Cep Tel - Mobile Phone: +90 532 472 00 63
>Blog URL: http://www.projedunyasi.org
>Yahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/
>




Re: examples...no logging?

2006-03-21 Thread Dennis Byrne
MyFaces lost some logging value when we went to a build process that changed 
many of the package names.  For example, if you want to get the logs for 
org.apache.myfaces.shared.util.StateUtils, you now must configure your logging 
provider with the following:

org.apache.myfaces.shared_impl.util.StateUtils
org.apache.myfaces.shared_tomahawk.util.StateUtils

Dennis Byrne

>-Original Message-
>From: Dean Hiller [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, March 21, 2006 07:04 AM
>To: 'MyFaces Discussion'
>Subject: examples...no logging?
>
>It would be great if someone could add logging at the fine level to one 
>of the examples.  I have been trying for days to get logging working(I
>must be a moron or something).  I just can't get it to work on tomcat
>5.5.16.  I could copy one of the examples if they had logging in them
>which enabled
>1. some logging for myfaces
>2. some logging for the app itself
>
>currently, I can put jdk log statements in at the info level and they
>will get logged, but I don't know how to see the finest/finer/fine
>statements.
>thanks for any help here,  It would be extremely appreciated.
>dean
>
>
>




MyFaces example wanted for t:panelTabbedPane's selectedIndex, and/or TabChangeListener

2006-03-21 Thread Mike Kienenberger
I've noticed that a lot of posters have asked for help with
t:panelTabbedPane's selectedIndex and TabChangeListener over the last
few months.

Would someone be willing to expand the sandbox example (or provide a
new example) showing how to use these features of panelTabbedPane?

It will enable new users to understand how to do this easier as well
as allow us to more quickly debug issues reported against
selectedIndex and TabChangeListener.

Thanks!


AW: inputCalendar problem

2006-03-21 Thread Matthias Kahlau

> Hi Matthias,
>
> I use the methods below to convert back and forth.
>
> Because our app uses java.util.Calendar, the method "toNormalizedDate" is
> used to convert the calendar to a date suitable for JSF, and
> "fromNormalizedDate" to convert it back.

Many thanks. So you don't use the convertDateTime action at all? And how do
I switch to using the Europe/Berlin TimeZone?

-Matthias


> Frank Felix
>
>   /**
>* Required to work around a bug in ADF/JSF, where
>* dates are always normalized to GMT, and then time
>* is set to 0, resulting in a change of date for all
>* time zones before GMT.
>*
>* @param calendar
>* @return normalized date
>*/
>   @SuppressWarnings("deprecation")
>   public static Date toNormalizedDate(Calendar calendar)
>   {
>   return calendar==null ? null : new Date(
>   Date.UTC(
>   calendar.get(Calendar.YEAR)-1900,
>   calendar.get(Calendar.MONTH),
>   calendar.get(Calendar.DATE),
>   0,
>   0,
>   0
>   )
>   );
>   }
>
>   /**
>* Required to work around a bug in ADF/JSF, where
>* dates are always normalized to GMT, and then time
>* is set to 0, resulting in a change of date for all
>* time zones before GMT.
>*
>* @param date the date to copy from
>*/
>   @SuppressWarnings("deprecation")
>   public static Calendar fromNormalizedDate(Date date)
>   {
>   if (date==null)
>   {
>   return null;
>   }
>   return new GregorianCalendar(
>   date.getDate(),
>   date.getYear()+1900),
>   date.getMonth()
>   );
>   }
>



RE: inputCalendar problem

2006-03-21 Thread Frank Felix Debatin
Hi Matthias, 

I use the methods below to convert back and forth. 

Because our app uses java.util.Calendar, the method "toNormalizedDate" is
used to convert the calendar to a date suitable for JSF, and
"fromNormalizedDate" to convert it back. 

Frank Felix

/**
 * Required to work around a bug in ADF/JSF, where
 * dates are always normalized to GMT, and then time
 * is set to 0, resulting in a change of date for all
 * time zones before GMT.   
 * 
 * @param calendar
 * @return normalized date
 */
@SuppressWarnings("deprecation")
public static Date toNormalizedDate(Calendar calendar)
{
return calendar==null ? null : new Date(
Date.UTC(
calendar.get(Calendar.YEAR)-1900,
calendar.get(Calendar.MONTH),
calendar.get(Calendar.DATE),
0,
0,
0
)
);
}

/**
 * Required to work around a bug in ADF/JSF, where
 * dates are always normalized to GMT, and then time
 * is set to 0, resulting in a change of date for all
 * time zones before GMT.
 * 
 * @param date the date to copy from 
 */
@SuppressWarnings("deprecation")
public static Calendar fromNormalizedDate(Date date)
{
if (date==null)
{
return null;
}
return new GregorianCalendar(
date.getDate(),
date.getYear()+1900),
date.getMonth()
);
}



Re: actionListener not invoked

2006-03-21 Thread Mike Kienenberger
My guess is that you are not persisting the value of #{back.enabled}
between requests.

In order for a UICommand to work, it must remain enabled
(rendered=true) from the first request renderResponse phase to the
next request's invokeApplication phase.

Maybe all you need to do is use t:saveState on #{back.enabled}.

On 3/21/06, Murat Hazer <[EMAIL PROTECTED]> wrote:
> A simple page has two links
>
>  rendered="#{back.enabled}" />
>   value="Enable Edit" />
>
> When the enable edit link is cliked 'enabled' property of the backing bean
> is changed to true so that the Edit link is rendered. The problem is that
> once the Edit link is rendered, it's method binding doesn't work. The edit
> method is never called when I click the link (or button). Why does this
> happen?
> --
> Murat HAZER
> Elektrik-Elektronik Mühendisi - Electrical-Electronics Engineer
> Tel - Phone: +90 222 335 05 80 - 1395
> Cep Tel - Mobile Phone: +90 532 472 00 63
> Blog URL: http://www.projedunyasi.org
> Yahoo Group:
> http://groups.yahoo.com/group/malatyafenlisesi/


Re: solution to exception(bad error message here)

2006-03-21 Thread Mike Kienenberger
Perhaps you were referencing the bean using JSP notation instead of
JSF notation?
If that's the case, you'll only get errors from the container's JSP compiler.

On 3/20/06, Dean Hiller <[EMAIL PROTECTED]> wrote:
> The solution to my earlier exception was I named the backing bean
> incorrectly.  funny that I did not get bean not exist error(I think I
> remember getting one from JSF before).  Anyways in this case I had a
> backing bean misnamed in faces-config.xml and I get the very
> uninformitive exception of.(there was nothing in the tomcat logs).
>
>
> javax.servlet.ServletException: org.apache.jasper.JasperException
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:109)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>
>
> *root cause*
>
> javax.faces.FacesException: org.apache.jasper.JasperException
>
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:425)
>
>
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:234)
>
>
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:300)
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:95)
>
> org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122)
>
>
>
>
>


RE: Tables - solutions for "row- and col-span"-style headers?

2006-03-21 Thread Lance Frohman
I have a patch to do this (colspan only), if you know how to build myfaces
from the
maven, you can use

http://issues.apache.org/jira/browse/TOMAHAWK-66

if not, it will (hopefully) be applied to the next version of tomahawk,
coming out soon (?), so you would have to wait.

-Original Message-
From: Morten Mortensen [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 5:54 AM
To: users@myfaces.apache.org
Subject: Q: Tables - solutions for "row- and col-span"-style headers?


Hi all MyFaces users

Are there any good, sound ways of having a table with some special
header-object? Something, which in terms of HTML requires the usage of
attributes "colspan" and "rowspan"?

In particular, I am interested in a layout like the attached file
"RequestedDataTable.png" (- I hope this image is still attached once you
receive this mail; otherwise the point is lost -).

If there are no... "good and sound ways", what are the possible ugly-bugly
hacks?

Can I find some examples on the net - with source code - ?

Regards,
Morten Sabroe Mortensen




AW: inputCalendar problem

2006-03-21 Thread Matthias Kahlau
> Hi Matthias,
>
> I believe this is the dreaded converter timezone problem which can be
> fixed by using your own special converter.
>
> What I generally do is put a component-binding on the calendar
> component and then create the component in the backend, and there I
> set stuff which is repeatable across the whole app (like a
> converter="#{converterBean.converter}") and styles.

Thanks. This sounds a little bit complicated for the apparently small
problem.

How does this converter have to look like? Can't I use the convertDateTime
standard action?

-Matthias

> regards,
>
> Martin
>
> On 3/20/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> >
> > I have a date "18.3.2006" shown in an outputText with a nested
> > convertDateTime with timeZone="Europe/Berlin". If I open an
> edit form with
> > this date "18.3.2006", the date is shown in an inputCalendar,
> also with a
> > nested convertDateTime with timeZone="Europe/Berlin".
> >
> > The problem is that the date is then shown as "19.3.2006". Does the
> > inputCalendar convert the date itself to another TimeZone?
> >
> > Thanks.
> >
> >
> > -Matthias
> >
> >
> >
>
>
> --
>
> http://www.irian.at
>
> Your JSF powerhouse -
> JSF Consulting, Development and
> Courses in English and German
>
> Professional Support for Apache MyFaces



Re: disable back button?

2006-03-21 Thread Aleksei Valikov

Hi.

> 3. Use client-side state saving. Then, when users go back, they also go
> back to the old state (serialized on the client side).
>

We're using the 3rd choice, with no problems.  Incidentally, the third
choice also works nicely if you use pop-up windows and then return to
the "main" window.


This won't work for me. I simply can't switch to the client-side state 
saving method.


* I have very large component trees with hundreds of components. it 
would be a killer to serialize and de-serialize them on each request.

* I use a lot of unserializable value/method bindings.

Bye.
/lexi


Re: disable back button?

2006-03-21 Thread Aleksei Valikov

Hi.

so I spent hours debugging something that was not my apps bug.  
Basically I clicked a commandLink on my app.  I clicked IE back button 
and clicked a different commandLink button(this resulted in refreshing 
the page).  I then clicked the same commandLink and this time it went to 
the page it was supposed to go to.  How can I resolve this issue?  This 
obviously will be considered a bug by my users.


Is there a way to fix this problem? 1. don't allow back button
2. get the commandlinks to work without having to refresh the page(I am 
using tree2)


The problem is that when you go "back" in history, you're getting to the 
old application state. This state is no longer actual, so you can't do 
anything with it.

Your choices are:

1. Disable history navigation by excluding your pages from the cache. 
Done with headers:

Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
This will force your pages to be reloaded when users go "back". 
Unfortunatelly, since JSF is primarily POST-method based, this method 
results in this ugly prompt window asking users if they really want to 
resubmit the POST request.


2. Diable the "back" button with javascript clearing the history in browser.

3. Use client-side state saving. Then, when users go back, they also go 
back to the old state (serialized on the client side).


I'm currently using the first choice. However, the "repost" prompt is 
really ugly. When I have time, I'll implement a tracking PhaseListener 
(memorizing user's path on the server) and a small javascript which 
hacks "prev" and "next" buttons in the browser.


Bye.
/lexi


Re: disable back button?

2006-03-21 Thread Enrique Medina
This is a recurrent problem. There are several possible solutions:1) Use request-scoped beans combined with 2) Use session-scoped beans with "Redirect-after-post" pattern (basically doing redirects in all your navigation)
Search within this forum for these topics and you'll find lots of threads discussing about this problem.Regards,Enrique Medina.On 3/21/06, 
Dean Hiller <[EMAIL PROTECTED]> wrote:
so I spent hours debugging something that was not my apps bug.Basically I clicked a commandLink on my app.  I clicked IE back buttonand clicked a different commandLink button(this resulted in refreshingthe page).  I then clicked the same commandLink and this time it went to
the page it was supposed to go to.  How can I resolve this issue?  Thisobviously will be considered a bug by my users.Is there a way to fix this problem?1. don't allow back button2. get the commandlinks to work without having to refresh the page(I am
using tree2)thanks,dean


disable back button?

2006-03-21 Thread Dean Hiller
so I spent hours debugging something that was not my apps bug.  
Basically I clicked a commandLink on my app.  I clicked IE back button 
and clicked a different commandLink button(this resulted in refreshing 
the page).  I then clicked the same commandLink and this time it went to 
the page it was supposed to go to.  How can I resolve this issue?  This 
obviously will be considered a bug by my users.


Is there a way to fix this problem? 
1. don't allow back button
2. get the commandlinks to work without having to refresh the page(I am 
using tree2)

thanks,
dean



RE: disable back button?

2006-03-21 Thread CONNER, BRENDAN \(SBCSI\)
We're using the 3rd choice, with no problems.  Incidentally, the third
choice also works nicely if you use pop-up windows and then return to
the "main" window.

- Brendan

-Original Message-
From: Aleksei Valikov [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, March 21, 2006 8:22 AM
To: MyFaces Discussion
Subject: Re: disable back button?


Hi.

> so I spent hours debugging something that was not my apps bug.  
> Basically I clicked a commandLink on my app.  I clicked IE back button

> and clicked a different commandLink button(this resulted in refreshing

> the page).  I then clicked the same commandLink and this time it went
to 
> the page it was supposed to go to.  How can I resolve this issue?
This 
> obviously will be considered a bug by my users.
> 
> Is there a way to fix this problem? 1. don't allow back button
> 2. get the commandlinks to work without having to refresh the page(I
am 
> using tree2)

The problem is that when you go "back" in history, you're getting to the

old application state. This state is no longer actual, so you can't do 
anything with it.
Your choices are:

1. Disable history navigation by excluding your pages from the cache. 
Done with headers:
Cache-Control: max-age=0, no-cache, no-store, must-revalidate
Pragma: no-cache
This will force your pages to be reloaded when users go "back". 
Unfortunatelly, since JSF is primarily POST-method based, this method 
results in this ugly prompt window asking users if they really want to 
resubmit the POST request.

2. Diable the "back" button with javascript clearing the history in
browser.

3. Use client-side state saving. Then, when users go back, they also go 
back to the old state (serialized on the client side).

I'm currently using the first choice. However, the "repost" prompt is 
really ugly. When I have time, I'll implement a tracking PhaseListener 
(memorizing user's path on the server) and a small javascript which 
hacks "prev" and "next" buttons in the browser.

Bye.
/lexi


examples...no logging?

2006-03-21 Thread Dean Hiller
It would be great if someone could add logging at the fine level to one 
of the examples.  I have been trying for days to get logging working(I 
must be a moron or something).  I just can't get it to work on tomcat 
5.5.16.  I could copy one of the examples if they had logging in them 
which enabled

1. some logging for myfaces
2. some logging for the app itself

currently, I can put jdk log statements in at the info level and they 
will get logged, but I don't know how to see the finest/finer/fine 
statements.

thanks for any help here,  It would be extremely appreciated.
dean




AW: jenia and myfaces 1.1.1

2006-03-21 Thread andreas.mitter
Hi,

I'm using Jenia Popups with MyFaces and it works...
What problems do you have?
Any error stack?

Regards,
Andy

-Ursprüngliche Nachricht-
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Gesendet: Samstag, 18. März 2006 12:00
An: MyFaces Discussion
Betreff: jenia and myfaces 1.1.1


Hi,
Is any one using jenia for popup windows with my faces 1.1.1. we tries
using it but got some error during parameter passing.

Any confirmation for same will be appreciated.

Thanks

Manish


Notice: The information contained in this e-mail message and/or attachments to 
it may contain confidential or privileged information. If you are not the 
intended recipient, any dissemination, use, review, distribution, printing or 
copying of the information contained in this e-mail message and/or attachments 
to it are strictly prohibited. If you have received this communication in 
error, please notify us by reply e-mail or telephone and immediately and 
permanently delete the message and any attachments. Thank you


__

Diese Nachricht ist fuer die MAGNA STEYR Fahrzeugtechnik AG & Co KG 
rechtsunverbindlich!
- This message is not legally binding upon MAGNA STEYR Fahrzeugtechnik AG & Co 
KG!

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
your system manager.

This footnote also confirms that this email message has been swept
for the presence of computer viruses.
__


Re: tree2 and expandAll question

2006-03-21 Thread Michael Heinen








Hi all,

 

I need also an expanded tree without navigation icons
and I don’t know how to achieve this.

Do you have a sample of how to use the (new)
TreeWalker?  Is it part of 1.1.2 or 1.1.3 ?

 

Or does anybody know an alternative which can be used
with stable 1.1.1 ?

 

Michael

 

 

> List:   myfaces-user

> Subject:    Re: show an expanded tree2
(MyFaces-1.1.1 on JDeveloper 10.1.3 EA)

> From:   Sean Schofield 

> Date:   2006-02-17 3:26:26

> Message-ID:
2387fbc50602161926g7f05aab9h677d5bf230fa5da4 () mail ! gmail ! com

> [Download message RAW]

> 

> Take a look at the stuff I just checked in.  I believe the new> TreeWalker stuff now gives you the ability to set the expanded state> of tree nodes *before* rendering.  I haven't tested that aspect though> so let me know what you think.> > Sean  > On 1/31/06, Cristofer Weber <[EMAIL PROTECTED]> wrote:> Hans, thanks for the explanations. I think there's another thing in my code> that is not working because I get a NullPointerException when I try to call> expandAll after building the tree data. When debugging the code I see a> empty instance of HtmlTree class even after some iterations with buttons> that expand e collapse the nodes.> > I will try to recreate the app in a simplified way to see what's wrong.> > thanks!> > > Cristofer> > 2006/1/27, Hans Sowa <[EMAIL PROTECTED] >:> > Hm> >> > I'm not sure wheter I understand you correctly. You don't need a action> like commandlink, etc. For instance in the code where you provide the data> for the tree you can call the function afterwards. This should work.> >> >> >> > 2006/1/27, Cristofer Weber < [EMAIL PROTECTED]>:> > > Hi Hans! First, thanks.> > >> > > When I´ve created a page whith a commandLink this way works fine, but> how can I call the expandAll method without an action like the commandLink?> How can I load the page with the tree2 in the expanded state without start> an event? I did'nt find examples or information.> > >> > > Thanks a lot.> > >> > > []'s> > >> > > Cristofer> > >> > >> > > 2006/1/27, Hans Sowa < [EMAIL PROTECTED]>:> > >> > > > Hi Cristofer> > > >> > > > I know way which is also explain in the examples as I know (I think, I> believe,..)> > > >> > > > First you have to to a binding to the tree2 component.> > > >> > > > > > > >> > > > Then you have to implement the following code in your managed bean:> > > >> > > > /** Reference to the tree. */> > > >     private HtmlTree tree;> > > >> > > >  /**> > > >  * @return Returns the tree.> > > >  */> > > > public HtmlTree getTree() {> > > > return this.tree;> > > > }> > > >> > > > /**> > > >  * @param tree The tree to set.> > > >  */> > > > public void setTree(final HtmlTree tree) {> > > > this.tree = tree;> > > > }> > > >> > > > /**> > > >  * Öffnet den gesamten Baum.> > > >  *> > > >  */> > > > public void expandAll() {> > > > this.getTree().expandAll();> > > > }> > > >> > > > So, with the expandAll fuction you can expand the whole tree.> > > >> > > > Hope this helps.> > > >> > > > best regards Hans> > > >> > > >> > > > 2006/1/27, Cristofer Weber < [EMAIL PROTECTED]>:> > > >> > > > > Hi friends> > > > >> > > > > after some days using the examples, I'm trying to create a page with> an expanded tree2 component, but I'm with some difficults to do so.> > > > >> > > > > My first try was a PhaseListener getting the ViewRoot and navigating> to the tree2 component for send a expandAll message, but without success.> > > > >> > > > >> > > > >> > > > > Then, I create my TreeModel extending the TreeModelBase and after> the load of my nodes I search for all leafNodes to send a expandPath using> the getPathInformation for each node, also without success.> > > > >> > > > >> > > > > In both tries the tree2 loads correctly, but in the collapsed state.> > > > >> > > > >> > > > > I'm in the way or there's another way to do it?> > > > >> > > > >> > > > > Thanks a lot!> > > > >> > > > >> > > > > Cristofer> > > > >> > > >> > > >> > > >> > > > --> > > > mfg Hans Sowa> > > > mailto:[EMAIL PROTECTED]> > >> > >> >> >> >> > --> > mfg Hans Sowa> > mailto:[EMAIL PROTECTED]> > 

 








Q: Tables - solutions for "row- and col-span"-style headers?

2006-03-21 Thread Morten Mortensen

Hi all MyFaces users

Are there any good, sound ways of having a table with some special
header-object? Something, which in terms of HTML requires the usage of
attributes "colspan" and "rowspan"?

In particular, I am interested in a layout like the attached file
"RequestedDataTable.png" (- I hope this image is still attached once you
receive this mail; otherwise the point is lost -).

If there are no... "good and sound ways", what are the possible
ugly-bugly hacks?

Can I find some examples on the net - with source code - ?

Regards,
Morten Sabroe Mortensen



RequestedDataTable.png
Description: RequestedDataTable.png


AW: java.lang.NullPointerException during render phase when using ADF and MyFaces Tomahwak components together

2006-03-21 Thread Marcel Soulier
Hi,

so far I have only used MyFaces and currently I am trying to use the ADF-Faces 
Components with it.

The impression I had about using Tiles with ADF and MyFaces was that I should 
use the Tiles Servlet because ADF uses its own ViewHandler which would collide 
with the MyFaces JspTilesViewHandler I used before.

When I was reading Adam's way of setting an alternate ViewHandler in a 
context-param I had the idea of using the MyFaces JspTilesViewHandlerImpl in a 
similar way for my JSP-based application.

It works quite well though I encountered a ClassCastException in the 
UIXComponentTag class where a UIXComponent is needed in the setProperties 
Method. So I put an "if(component instanceof UIXComponent)" inside this Method 
and it worked.

Now the reason for this posting is this:
 
Am I going in the right direction here? Are there any side-effects with using 
the MyFaces ViewHandler inside an ADF context?

Or maybe there is a different way of getting the advantages of the 
MyFacesViewHandler (e.g. direct usage of tiles-definitions in navigation rules)?

Maybe anyone here has already used the combination of JSPs, MyFaces, Tiles, ADF 
and can give some advice.

M.Soulier

-Ursprüngliche Nachricht-
Von: Adam Winer [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 21. März 2006 06:50
An: MyFaces Discussion
Betreff: Re: java.lang.NullPointerException during render phase when using ADF 
and MyFaces Tomahwak components together

Murray,

You need to install the FaceletViewHandler using:

 
 oracle.adf.view.faces.ALTERNATE_VIEW_HANDLER
   com.sun.facelets.FaceletViewHandler
  

in WEB-INF/web.xml, not in faces-config.xml.

Also, not that it's related to this issue, you need to install the ADF Faces
Filter.  Check out the config posted in the other thread for all the details.

-- Adam



On 3/20/06, Murray Brandon <[EMAIL PROTECTED]> wrote:
> Apologies if this topic has been done to death in the group as I've just
> joined.
> I'm sure it's something to do with my configuration of web.xml or
> faces-config.xml, but what?
> Either the AdfRenderingContext isn't attached to the thread or
> getProperties() is returning null.
> I'm using the dump of ADF attached to the myfaces site (ie.
> adf-faces-impl-ea20-SNAPSHOT).
> I don't think it is trying to render any of the ADF tags (same null
> pointer if I comment out the ADF tags),
> this is on render of tomahawk/myfaces tags.
>
> Any help appreciated!
>
> Regards, Murray
> 
> ===
>
> SEVERE: Error Rendering View[/main.xhtml]
> java.lang.NullPointerException
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.setRenderingP
> roperty(FacesRenderingContext.java:157)
> at
> oracle.adfinternal.view.faces.ui.RenderedNodeRenderingContext.setPropert
> y(RenderedNodeRenderingContext.java:162)
> at
> oracle.adfinternal.view.faces.ui.RootRenderingContext.init(RootRendering
> Context.java:81)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.(FacesR
> enderingContext.java:106)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.createRenderi
> ngContext(FacesRenderingContext.java:79)
> at
> oracle.adfinternal.view.faces.uinode.UINodeRendererBase.getRenderingCont
> ext(UINodeRendererBase.java:89)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> ontext(FacesRenderingContext.java:66)
> at
> oracle.adfinternal.view.faces.uinode.FacesRenderingContext.getRenderingC
> ontext(FacesRenderingContext.java:52)
> at
> oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.getRend
> eringContext(UINodeRenderer.java:79)
> at
> oracle.adfinternal.view.faces.renderkit.htmlBasic.UINodeRenderer.encodeB
> egin(UINodeRenderer.java:38)
> at
> javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:5
> 12)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:555)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:562)
> at
> com.sun.facelets.FaceletViewHandler.encodeRecursive(FaceletViewHandler.j
> ava:562)
> at
> com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:4
> 57)
> at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:367
> )
> at
> javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:252)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
> erChain.java:173)
> at
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFil
> ter.java:130)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applica
> tionFilterChain.java:202)
> at
> org.apache.catalina.core.Applic

Re: SelectItem style

2006-03-21 Thread Emmanuel Jay
hmmh ok, I guess the way is to create a custom renderer for it then.For your problem you can use a valueChangeListener for server side or the tomahawk jsValueChangeListener.Emmanuel
On 3/21/06, Krause, Nico <[EMAIL PROTECTED]> wrote:





have 
the same problem. I think we have to write our own selectItem which supports 
it.
i want 
to use it in a radio button and i have another requirement: 
i like 
to click on the label of a select item so the radio button switches its status. 

 
Nico
 
Nico 
Krause| Software 
Development| TomTom WORK | [EMAIL PROTECTED] | +49 
(0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | 
www.tomtomwork.com

 


Von: Emmanuel Jay [mailto:[EMAIL PROTECTED]] 
Gesendet: Dienstag, 21. März 2006 11:25An: MyFaces 
DiscussionBetreff: SelectItem style
Hi all,Isn't there any way to set the style of a 
selectItem?Thanks,Emmanuel




Problems with form and target _blank

2006-03-21 Thread Thomas Peuss

Hello!

I have a problem with a form that has commandlinks with target="_blank". 
The problem is that sometimes the new window opens with the same page I 
am coming from, sometimes it opens the correct new page I have defined 
in faces-config.xml. The behaviour is completely random. I tried to have 
a target="_blank" on form level and use commandbuttons. But the 
behaviour stays the same. So there must be something I am doing wrong. 
In the logfile are no exceptions or warnings.


Environment:
* Sun JDK 5.0
* Tomcat 5.5.16
* MyFaces 1.1.1

I attached the JSP for reference.

Thanks for any advice
Thomas
<%@ page language="java" pageEncoding="UTF-8"%>

<%@ taglib uri="http://java.sun.com/jsf/html"; prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core"; prefix="f"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core"; prefix="c"%>




displayLogFiles.jsp
































   



   















Re: newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-21 Thread Dean Hiller
I am pretty much a newb myself to all this, but what do you have in your 
welcome file list.  If you have index.jsp, that could be screwing things 
up maybe?  I read in a book that a JSF app usually bootstraps with an 
index.html that redirects to the first jsf page sort of like


index.html -> home.leg

I have not tried index.leg which many not work for me either.  Run a 
quick test and create a test.jsp page and type in the url 
http://localhost:8080/test/test.leg and see if that works.  If it does, 
it could have something to do with welcome-file-list.

dean

Legolas Woodland wrote:


Hi Dean,
I have changed my web.xml  file as follow :



   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   *.leg
   

I have *No* .leg file in my web root file.
i have files like :
index.jsp
logout.jsp
login.jsp

When i tried to access my index.jsp using the following url :
http://127.0.0.1:8080/test/index.leg
it return

*HTTP Status 404 -
*

*what else i should configure to use .leg extension ?
should i change all of myfiles extension to .leg?
*


before this i used the formal /faces/* as a url pattern , on that time 
i could access my jsp files  using

http://localhost:8080/test/faces/index.jsp


Thanks


Dean Hiller wrote:

yes, I use *.jsf.  when a url http://localhost:8080/webapp/page.jsf 
is called, it calls the jsp in webroot of your war file.  I also 
personally put this in my web.xml.



  javax.faces.DEFAULT_SUFFIX
  .jspx


This allows me to name all my JSF jsps .jspx and I can name all 
my normal jsps(that are not for JSF) x.jsp.  I tried to figure 
out how I could use jsf in the url and in the file name in the war 
file, but it seems that cannot be done right now(or I could not 
figure it out).

later,
dean



Legolas Woodland wrote:


There are two declaration in web.xml that i can not understand
these are :


   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   /faces/*
   


I just can not understand , in some places they set another 
url-pattern , for example :

   *.faces
and thier application works file.

but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies 
to my request.


but when people uses *.faces in url-pattern , how they navigate to 
jsp pages ?
should they change the file extensions to use jsf pages , or there 
is some other triks ?



Thank you











Re: General question to AJAX stuff from the sandbox

2006-03-21 Thread Aleksei Valikov

Hi.


I have tried the dojo inputSuggest in a few applications, never had
problems with slow loading times. Now with server side state saving,
as you have said, every needed dojo class is loaded, and this results
in many js files.


I've studied it a bit closer. Here's a small log of what's actually 
loaded from the server:


NO.  Duration(s)  Size   URL
   1 1,031 s  64866  record/edit.html 

   2 0,014 s  773script/widget/__package__.js 

   3 0,141 s  6280   script/xml/Parse.js 

   4 0,249 s  14957  script/widget/Widget.js 

   5 0,203 s  9668   script/widget/Manager.js 

   6 0,061 s  10765  script/widget/Parse.js 

   7 0,094 s  17584  script/widget/DomWidget.js 

   8 0,000 s  598script/uri/__package__.js 

   9 0,078 s  6209   script/widget/HtmlWidget.js 

   100,031 s  5865   script/widget/ComboBox.js 

   110,124 s  12611  script/widget/html/ComboBox.js 

   120,000 s  718script/io/__package__.js 

   130,000 s  3328   script/io/cookie.js 

   140,046 s  6045   script/widget/html/stabile.js 

   150,094 s  5829   script/widget/Wizard.js 

   160,000 s  712script/widget/LayoutPane.js 

   170,109 s  11399  script/widget/html/LayoutPane.js 

   180,031 s  574script/widget/Container.js 

   190,000 s  1393   script/widget/html/Container.js 

   200,015 s  2298   script/collections/ArrayList.js 

   210,000 s  2087   script/collections/Collections.js 



(Note: this page was already accessed before, so all of the scripts were 
already loaded once).


It's 20 scripts of more than 100K, loaded in ~1 sec. Could this be 
somehow optimized?


Bye.
/lexi


actionListener not invoked

2006-03-21 Thread Murat Hazer
A simple page has two links
When the enable edit link
is cliked 'enabled' property of the backing bean is changed to true so that the Edit link is
rendered. The problem is that once the Edit link
is rendered, it's method binding doesn't work. The edit method is
never called when I click the link (or button). Why does this happen?-- Murat HAZERElektrik-Elektronik Mühendisi - Electrical-Electronics EngineerTel - Phone: +90 222 335 05 80 - 1395Cep Tel - Mobile Phone: +90 532 472 00 63
Blog URL: http://www.projedunyasi.orgYahoo Group: http://groups.yahoo.com/group/malatyafenlisesi/


tobago stable release

2006-03-21 Thread Iryna Stetska
Tobago team,

When are you going to make stable official release?

We would like our application to stick to some definite version and
not to update tobago and deal with changes (like deprecated
components) every time something is changed or fixed.
Releases would also give release notes and list of what have been done.

Thanks,
Ira



AW: SelectItem style

2006-03-21 Thread Krause, Nico



have 
the same problem. I think we have to write our own selectItem which supports 
it.
i want 
to use it in a radio button and i have another requirement: 
i like 
to click on the label of a select item so the radio button switches its status. 

 
Nico
 
Nico 
Krause| Software 
Development| TomTom WORK | [EMAIL PROTECTED] | +49 
(0)1749891949 mobile | +49(0)34124495-0 office | +49(0)34124495-25 fax | 
www.tomtomwork.com
 


Von: Emmanuel Jay [mailto:[EMAIL PROTECTED] 
Gesendet: Dienstag, 21. März 2006 11:25An: MyFaces 
DiscussionBetreff: SelectItem style
Hi all,Isn't there any way to set the style of a 
selectItem?Thanks,Emmanuel


Re: inputCalendar problem

2006-03-21 Thread Martin Marinschek
Hi Matthias,

I believe this is the dreaded converter timezone problem which can be
fixed by using your own special converter.

What I generally do is put a component-binding on the calendar
component and then create the component in the backend, and there I
set stuff which is repeatable across the whole app (like a
converter="#{converterBean.converter}") and styles.

regards,

Martin

On 3/20/06, Matthias Kahlau <[EMAIL PROTECTED]> wrote:
> Hi!
>
>
> I have a date "18.3.2006" shown in an outputText with a nested
> convertDateTime with timeZone="Europe/Berlin". If I open an edit form with
> this date "18.3.2006", the date is shown in an inputCalendar, also with a
> nested convertDateTime with timeZone="Europe/Berlin".
>
> The problem is that the date is then shown as "19.3.2006". Does the
> inputCalendar convert the date itself to another TimeZone?
>
> Thanks.
>
>
> -Matthias
>
>
>


--

http://www.irian.at

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

Professional Support for Apache MyFaces


SelectItem style

2006-03-21 Thread Emmanuel Jay
Hi all,Isn't there any way to set the style of a selectItem?Thanks,Emmanuel


Re: newBee question : what are these additional declaration in web.xml for jsf stuff.

2006-03-21 Thread Dean Hiller
works for me.  I changed mine to *.leg and left all my files to be 
called *.jsp with this web.xml file..

My index.jsp does a redirect to my home.leg url.

http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; 
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee 
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd";>

webAppTest2

 Comma separated list of URIs of (additional) faces config 
files.

   (e.g. /WEB-INF/my-config.xml)
   See JSF 1.0 PRD2, 10.3.2
 javax.faces.CONFIG_FILES
 /WEB-INF/faces-config.xml


 State saving method: "client" or "server" (= default)
   See JSF Specification 2.5.2
 javax.faces.STATE_SAVING_METHOD
 server


 This parameter tells MyFaces if javascript code should be 
allowed in the

   rendered HTML output.
   If javascript is allowed, command_link anchors will have 
javascript code

   that submits the corresponding form.
   If javascript is not allowed, the state saving info and 
nested parameters

   will be added as url parameters.
   Default: "true"
 org.apache.myfaces.ALLOW_JAVASCRIPT
 true


 This parameter tells MyFaces if javascript code should be 
allowed in the

   rendered HTML output.
   If javascript is allowed, command_link anchors will have 
javascript code

   that submits the corresponding form.
   If javascript is not allowed, the state saving info and 
nested parameters

   will be added as url parameters.
   Default: "false"

   Setting this param to true should be combined with 
STATE_SAVING_METHOD "server" for

   best results.

   This is an EXPERIMENTAL feature. You also have to enable the 
detector filter/filter mapping below to get

   JavaScript detection working.
 org.apache.myfaces.DETECT_JAVASCRIPT
 false


 If true, rendered HTML code will be formatted, so that it 
is "human readable".
   i.e. additional line separators and whitespace will be 
written, that do not

   influence the HTML code.
   Default: "true"
 org.apache.myfaces.PRETTY_HTML
 true


 If true, a javascript function will be rendered that is 
able to restore the
   former vertical scroll on every request. Convenient feature 
if you have pages
   with long lists and you do not want the browser page to 
always jump to the top
   if you trigger a link or button action that stays on the 
same page.

   Default: "false"
 org.apache.myfaces.AUTO_SCROLL
 true




 
org.apache.myfaces.webapp.StartupServletContextListener



 Faces Servlet
 javax.faces.webapp.FacesServlet
 1


 Faces Servlet
 *.leg




 index.jsp
 index.html




Legolas Woodland wrote:


Hi Dean,
I have changed my web.xml  file as follow :



   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   *.leg
   

I have *No* .leg file in my web root file.
i have files like :
index.jsp
logout.jsp
login.jsp

When i tried to access my index.jsp using the following url :
http://127.0.0.1:8080/test/index.leg
it return

*HTTP Status 404 -
*

*what else i should configure to use .leg extension ?
should i change all of myfiles extension to .leg?
*


before this i used the formal /faces/* as a url pattern , on that time 
i could access my jsp files  using

http://localhost:8080/test/faces/index.jsp


Thanks


Dean Hiller wrote:

yes, I use *.jsf.  when a url http://localhost:8080/webapp/page.jsf 
is called, it calls the jsp in webroot of your war file.  I also 
personally put this in my web.xml.



  javax.faces.DEFAULT_SUFFIX
  .jspx


This allows me to name all my JSF jsps .jspx and I can name all 
my normal jsps(that are not for JSF) x.jsp.  I tried to figure 
out how I could use jsf in the url and in the file name in the war 
file, but it seems that cannot be done right now(or I could not 
figure it out).

later,
dean



Legolas Woodland wrote:


There are two declaration in web.xml that i can not understand
these are :


   Faces Servlet
   javax.faces.webapp.FacesServlet
   1
   

   

   
   Faces Servlet
   /faces/*
   


I just can not understand , in some places they set another 
url-pattern , for example :

   *.faces
and thier application works file.

but for me with the first url-mapping , i should navigate to
http://localhost:8080/testApp/faces/index.jsp to works
so my understanding is that :
when i navigate to that url , the pattern matches and filter applies 
to my request.


but when people uses *.faces in url-pattern , how they navigate to 
jsp pages ?
should they change the file extensions to use jsf pages , or there 
is some other triks ?



Thank you











RE: Fix the Header of Datatable

2006-03-21 Thread Michael Heinen








Nikita, 

 

You use a styleclass called
„sortable“ but your css definition is “sort_table”.

 

 

I implemented it this way
(for IE):

 

JSP:





       value="#{MyBean.documents}"

       var="doc"

…

 

CSS:

DIV#docsdiv {

  OVERFLOW: auto; WIDTH:100%; HEIGHT: 180px;

}

DIV#docsdiv TABLE {

  BORDER-COLLAPSE:collapse;

}

DIV#docsdiv THEAD TH {

  FONT-WEIGHT: bold;

  POSITION: relative;

  Z-INDEX: 20;

  TOP: _expression_(document.getElementById("docsdiv").scrollTop-2);

}

 









From:
Nikita Shah [mailto:[EMAIL PROTECTED] 
Sent: Montag, 20. März 2006 12:29
To: MyFaces
 Discussion
Subject: RE: Fix the Header of
Datatable



 

Hello all

I have found a post on the same issue, where this problem is solved..
http://www.mail-archive.com/users%40myfaces.apache.org/msg16386.html

But I am not able to yet solve this issue ...
My whole jsp code and css is as below, can anyone plzz help on this issue ..?


               
        styleClass="detailsTable"
               
       
rowClasses="detailsTable_Row1,detailsTable_Row2" 
               
        var="nodes"
               
        width="100%"
               
       
columnClasses="detailsTable_newNodeColumn,detailsTable_newGroupColumn"
               
       
value="#{detailsData.nodes}">
               
        
               
         
               
        
               
               

               
      &nbs p; 
               
        
               
           

               
            
               
               

               
               
           
styleClass="sortable,dv_scrollTable"
               
               
           
headerClass="groupTable_Header" 
               
               
           
rowClasses="groupTable_Row" 
               
               
           
columnClasses="groupTable_Column" 
               
               
            var="groups"

               
               
           
value="#{nodes.groups}"
               
               
           
cellpadding="0"
               
               
           
cellspacing="0">       
    
               
               

               
               
    
               
       
    
               
   
   

               
   
   

              &n
bsp;    
   

               
               

               
               

               
               
    
               
   
   
    
               
   
   

               
   
   

               
               

               
               

               
               
    
               
   
   
    
               
   
   

               
   
   

               
               

          &nb sp;
               
    
               
            
               
           

               
        
               
        


and my css is --

.dv_scrollTable
{
width: 250px; 
height: 50px; 
overflow: auto;
}

/* ---
Sort Table
--- */


.sort_table tr td {
    width: 100%;
    border-color:#B7BDC2 ;
    border-style: solid;
    border-width: 0ex;    
    margin       
    : 0em;
    padding-top        : 0em;

}
.sort_table_header {
    color: #F0F3F4;
   
text-align  : center;
    font-family
: arial;
   
font-size   : 1.4ex;
    background-color: #8E969D;
    text-align: center;
    height: 1em;

    border-top-color : #B7BDC2;
    border-left-color: #B7BDC2;
    border-bottom-color : gray;
    border-right-color: gray;
    
    border-bottom-style: solid;
    border-right-style: solid;
    border-top-style: solid;
    border-left-style: solid;
}

.sort_table_row {
    color       
        : black;
   
text-align  : center;
    font-family
: arial;
   
font-size   : 1.4ex;
    background-color    : #E6EAEC;
    border-color    : #B7BDC2; 
    border-width: 0ex;
    
}
.sort_table_column {
    color       
        : black;
   
text-align  : center;
    font-family
: arial;
   
font-size   : 2ex;
    background-color    : #E6EAEC;
    text-align       
    : center;
    height       
        : 1em;
    border-color    : #B7BDC2;
    border-width: 0ex;    
}

The class sortable is used for column sorting in table . ..?
Where do i apply the overflo auto in such case ... ?

Any type of help will be appreciated..

TIA
~Nikita


Michael Heinen
<[EMAIL PROTECTED]> wrote:



You can easily achieve
this with css.





 





For IE check these links:






http://web.tampabay.rr.com/bmerkey/examples/nonscroll-table-header.html





http://web.tampabay.rr.com/bmerkey/examples/locked-column-csv.html





 





For mozilla you can
define an overflow:auto style and a fixed height for the tbody element.





 





 





 













From