Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
OK.

Moved the org.apache.myfaces.webapp.filter.*WelcomeFileFilter* after the
*Extensions Filter* in the /*web.xml*/ and the *PhaseListener *approach to
*addResource *seems to be working.  More testing to follow and I will report
any issues.

That was a lot of investigation due to Filter Order/etc.!!  

Thanks for the input!





--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121626.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
Gentlemen,

After all this (/My initial attempt at doing this was using a phaselistener
after all/), I now see */WHEN /*the phaselistener solution is not working. 
The question now is */why/*?

When I use the URL: http://localhost:8080//index.jsf -* IT WORKS*

When I use the URL: http://localhost:8080// - *IT DOES NOT WORK*

So when Tomcat defaults to the index.jsf, *IT DOES NOT WORK*.  When I
specify the index.jsf (or any other jsf page for that matter), *IT WORKS*!

Any thoughts.

Thank you for your assistance.  

Matt



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121625.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
Mike, Thanks...yeah were all good with the understanding of the Lifecycle...

I'm just curious why the addResource call *WORKS* in an /encodeEnd /of a
Custom Component, which is fired in the */Render Response/* phase, 

but...

*DOES NOT WORK* when the addResource is called directly from a PhaseListener
during the same */Render Response/* phase...

Any thoughts?



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121623.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
*FYI*: When added the call to addResource in encodeEnd method of a Custom
Component it works on both /*initial request*/ and /*postback */.

Here's the initial request;

RESTORE_VIEW(1) :: Before
RESTORE_VIEW(1) :: After
RENDER_RESPONSE(6) :: Before
*AddResource Here!*
RENDER_RESPONSE(6) :: After

Same code I had in the listener in the encodeEnd;

AddResource ar = AddResourceFactory.getInstance(facesContext);
ar.addInlineScriptAtPosition(facesContext, AddResource.HEADER_BEGIN,
"window.open()");
System.out.println("AddResource Here!");

Soany thoughts why it works from the component and not from the phase
listener?

Thanks.




--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121619.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
I created this simple test phaseListener before my original post and it only
works an a postback, not an initial request.  /Put the code in both phases
just in case./  *No Luck*. 

package com.ngsimages.cart.phaselistener;

import javax.faces.event.PhaseEvent;
import javax.faces.event.PhaseId;
import javax.faces.event.PhaseListener;

import org.apache.myfaces.renderkit.html.util.AddResource;
import org.apache.myfaces.renderkit.html.util.AddResourceFactory;

/**
 * @author mfischer
 *
 */
public class AddResourceListener implements PhaseListener {
/**
 * 
 */
private static final long serialVersionUID = -7584339550737064360L;

@Override
public void afterPhase(PhaseEvent arg0) {
AddResource ar = 
AddResourceFactory.getInstance(arg0.getFacesContext());
ar.addInlineScriptAtPosition(arg0.getFacesContext(),
AddResource.HEADER_BEGIN, "window.open()");
}

@Override
public void beforePhase(PhaseEvent arg0) {
AddResource ar = 
AddResourceFactory.getInstance(arg0.getFacesContext());
ar.addInlineScriptAtPosition(arg0.getFacesContext(),
AddResource.HEADER_BEGIN, "window.open()");

}

@Override
public PhaseId getPhaseId() {
return PhaseId.RENDER_RESPONSE;
}
}

Shame to have to create a component just to add javascript.

Any other ideas on how to dynamically add a script to the page header?



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121618.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: addResource to add CSS JS - Only working on PostBack

2016-04-19 Thread fischman_98
So are you confirming/agreeing that the result of an addResource call is
handled in the Apply Request phase?

And as to /only need to adjust the code a bit/, what code and where?  I was
trying in a phaselistener, are you suggesting a custom ViewHandler, custom
component or ?

Matt



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593p121611.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


addResource to add CSS JS - Only working on PostBack

2016-04-14 Thread fischman_98
To all,

I still have a MyFaces 1.1.6/Tomahawk 1.1.10 in production, client not
giving the time to migrate to 2.X.

That said, I'm trying to add javascript to specific pages https://www.owasp.org/index.php/Cross_Frame_Scripting";>Cross_Frame_Scripting
).

Instead of just adding it to the pages between 
tags, I am trying to use org.apache.myfaces.renderkit.html.util.AddResource
to inject the CSS and JS (/analyze the directories and add it to specific
pages/).

I thought to do it in a phaseListener.

Problem is, I can't get it to work on the *initial reques*t, only on
*PostBacks* (/is it done in the *Apply Requests* phase/?).

Seems like I should be able to intercept the response and add this...I have
the Extensions Filter (Tomahawk) set up and have added ADD_RESOURCE_CLASS
(DefaultAddResource) to the context in web.xml.

Anyone have any thoughts?

I haven't posted a question in a long while...I would love to hear a
solution for this (/relatively/) Old School set up!

Thanks.







--
View this message in context: 
http://myfaces.10567.n7.nabble.com/addResource-to-add-CSS-JS-Only-working-on-PostBack-tp121593.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Does Package Naming have Meaning for Tomahawk

2013-02-05 Thread fischman_98
For Example:  
HTMLInputSecretTag found in 3 Tomahawk.jar packages
In the tomahawk.jar (1.1.10), I'm finding the same class in multiple
packages.  
Is there meaning to the package naming [generated vs shared_tomahawk vs
ext]?
  
If I'm extending a class, is there a specific package to use?  

*HTMLInputSecretTag* is found in the following three packages;
import org.apache.myfaces.generated.taglib.html.ext.HtmlInputSecretTag;
import org.apache.myfaces.shared_tomahawk.taglib.html.HtmlInputSecretTag;
import org.apache.myfaces.taglib.html.ext.HtmlInputSecretTag;
Thanks, Matt



--
View this message in context: 
http://myfaces.10567.n7.nabble.com/Does-Package-Naming-have-Meaning-for-Tomahawk-tp114143.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Is Tomahawk 1.1.9 Compatible with MyFaces-2.0.0-beta-3

2010-04-19 Thread fischman_98

Is Tomahawk 1.1.9 Compatible with MyFaces-2.0.0-beta-3?  

OR is there a Tomahawk nightly build that is compatible with
MyFaces-2.0.0-beta-3?

I'm getting a series of errors, starting with this one: 
SEVERE: Exception wile retrieving addResource
java.lang.NoClassDefFoundError: org/apache/commons/el/Logger

Thanks.



-- 
View this message in context: 
http://old.nabble.com/Is-Tomahawk-1.1.9-Compatible-with-MyFaces-2.0.0-beta-3-tp28287763p28287763.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Streaming Large Files: OutOfMemory Exception

2009-10-05 Thread fischman_98

To All:

So from all the other posts it appears that this is a problem with no true
resolution.  

>From what I can gather, JSF buffers all output into memory so the output can
be further processed by filters. So, downloading a large file results to an
OutOfMemory Exception. 

The Servlet is an easy work-around, but this should work in JSF.  Should
this be posted to the JIRA?

Also, has there been any development progress on this besides servlets.

Thanks.

Matt
-- 
View this message in context: 
http://www.nabble.com/Streaming-Large-Files%3A-OutOfMemory-Exception-tp25757028p25757028.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: File download and out of memory

2009-10-05 Thread fischman_98

To All:

So far I've found that using the old fashioned servlet is the only (&
Quickest as far as download speed) way to go.

I would love to see a managedBean solution if someone comes up with one.

I am going to attempt the phaseListener approach (
http://cagataycivici.wordpress.com/2006/02/16/phaselistener_renders_an_image_no/
Phase Listener Approach ) and we'll see.

But servlet works for me.

Matt



Shane Petroff wrote:
> 
> Hello,
> 
> I'm having a problem with a link used to download a "large" file. I say 
> large in quotation because by modern standards, the 5MB file I'm talking 
> about is tiny; I need to be able to handle at least 20MB. The same code 
> works for small files (<25K), but dies on larger ones. Hopefully it is a 
> configuration issue. On the jsp, there is a commandLink bound to the 
> "onDownload" action pasted below. The only config I can imagine that 
> might come into play is configuring the extensions filter itself. I've 
> specified UTF-8 encodings by default since several pages must support 
> extended characters. I'm currently using MyFaces core 1.1.5, Tomahawk 
> 1.1.6 and Tomcat 5.5.23
> 
> The stack trace is:
> java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Arrays.java:2882)
> at 
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
> at 
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
> at java.lang.StringBuffer.append(StringBuffer.java:320)
> at 
> org.apache.myfaces.shared_tomahawk.renderkit.html.util.UnicodeEncoder.encode(UnicodeEncoder.java:54)
> (full stack trace below)
> 
> Extension Filter config:
> 
> MyFacesExtensionsFilter
> 
> org.apache.myfaces.webapp.filter.ExtensionsFilter
> 
> maxFileSize
> 90m
> 
> 
> uploadMaxFileSize
> 90m
> 
> 
> 
> Action code:
> public String onDownload()
> {
> String rtn = Constants.ERROR_OUTCOME;
> FileInputStream fis = null;
> OutputStream os = null;
> try
> {
> File file = buildFile(); // creates a 5MB file. If I hack 
> this to return a 25K file, it all works well
> 
> FacesContext fc = FacesContext.getCurrentInstance();
> HttpServletResponse response = (HttpServletResponse) 
> fc.getExternalContext().getResponse();
> response.setHeader("Content-disposition", "attachment; 
> filename=" + file.getName());
> response.setContentType("application/xml");
> 
> fis = new FileInputStream(file);
> os = new BufferedOutputStream(response.getOutputStream());
> 
> int read;
> while( (read = fis.read()) != -1 )
> os.write(read);
> 
> os.flush();
> fc.responseComplete();
> rtn = Constants.SUCCESS_OUTCOME;
> }
> catch ( Exception e )
> {
> logException( MessageConstants.LOADING_ERROR_PREFIX + "XML", 
> e );
> }
> finally
> {
> try
> {
> os.close();
> fis.close();
> }
> catch(Exception ignored) { /* we don't care about NPE's 
> either */ }
> }
> 
> return rtn;
> }
> 
> Full Stack Trace:
> java.lang.OutOfMemoryError: Java heap space
> at java.util.Arrays.copyOf(Arrays.java:2882)
> at 
> java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
> at 
> java.lang.AbstractStringBuilder.append(AbstractStringBuilder.java:572)
> at java.lang.StringBuffer.append(StringBuffer.java:320)
> at 
> org.apache.myfaces.shared_tomahawk.renderkit.html.util.UnicodeEncoder.encode(UnicodeEncoder.java:54)
> at 
> org.apache.myfaces.shared_tomahawk.renderkit.html.HtmlResponseWriterImpl.write(HtmlResponseWriterImpl.java:567)
> at 
> org.apache.myfaces.renderkit.html.util.DefaultAddResource.writeResponse(DefaultAddResource.java:847)
> at 
> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:162)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> org.springframework.orm.hibernate3.support.OpenSessionInViewFilter.doFilterInternal(OpenSessionInViewFilter.java:173)
> at 
> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:77)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
> at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
> at 
> ca.mayet.SessionTimeoutRedirectFilter.doFilter(SessionTimeoutRedirectFilter.java:78)
> at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilter

Re: PARTIAL_STATE_SAVING_METHOD

2009-04-09 Thread fischman_98

It appears that by adding this;

 
javax.faces.PARTIAL_STATE_SAVING_METHOD
false
 


to the web.xml file, the warnings go away (MyFaces 1.1.6, Tomcat 6.X, JDK
1.6.0_07).

When was it added/required in the web.xml file?

Still can't find any documentation on it.

Thanks.

Matt



Leonardo Uribe wrote:
> 
> On Wed, Aug 20, 2008 at 2:41 AM, Matthias Wessendorf
> wrote:
> 
>> On Wed, Aug 20, 2008 at 9:38 AM, simon.kitch...@chello.at
>>  wrote:
>> > "partial state saving" is a performance-enhancement feature that was
>> added
>> > in myfaces. But it is entirely optional; it defaults to off (as the
>> message
>> > says). And actually, as it was never properly documented (sigh) almost
>> > no-one (including me) knows what it really does or how to really use
>> it.
>> >
>> > So in short, just ignore this message. Probably myfaces should not log
>> > anything here, as no-one ever has this enabled (except maybe the author
>> of
>> > the code) due to the lack of info about it.
>>
>> :-)
>> +1 on not logging
>>
> 
> Actually, a warning is shown for every param not defined on web.xml
> 
> 
>>
>> >
>> > Regards,
>> > Simon
>> >
>> > Matthias Wessendorf schrieb:
>> >>
>> >> HEy Leo,
>> >>
>> >> do you know why this message is shown?
>> >>
>> >> -Matthias
>> >>
>> >> On Tue, Aug 19, 2008 at 8:06 PM, SANTINI, Rafael
>> > >
>> >> wrote:
>> >>
>> >>>
>> >>> Hi,
>> >>>
>> >>> I'm getting "No context init parameter
>> >>> 'javax.faces.PARTIAL_STATE_SAVING_METHOD' found; no partial state
>> saving
>> >>> method defined, assuming default partial state saving method off.",
>> after
>> >>> update MyFaces Core from 1.1.4 to 1.1.6. What means?
>> >>>
>> >>> Thanks,
>> >>>
>> >>> /*
>> >>> * Rafael Santini
>> >>> * http://blog.santini.eti.br
>> >>> */
>> >>>
>> >>>
>> >>
>> >>
>> >>
>> >>
>> >
>> >
>>
>>
>>
>> --
>> Matthias Wessendorf
>>
>> Need JSF and Web 2.0?
>> http://code.google.com/p/facesgoodies
>>
>> further stuff:
>> blog: http://matthiaswessendorf.wordpress.com/
>> sessions: http://www.slideshare.net/mwessendorf
>> mail: matzew-at-apache-dot-org
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/PARTIAL_STATE_SAVING_METHOD-tp19055646p22975809.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Email validation for comma separated list - in 1.1.5?

2009-03-06 Thread fischman_98

What is the name of the validation tag to validate comma separated emails?

I see in the release notes for MyFaces Tomahawk v1.1.5 Release that this is
a ** New Feature

 * [TOMAHAWK-182] - new validator - validate comma separated entries by
splitting them and validating individually

Can't find it in the documentation.

I see in the sandbox a .  Is this what I should use?

Thanks.

See
http://www.nabble.com/Email-validation-td12258680.html
http://www.nabble.com/Email-validation-td12258680.html 

and
http://www.mail-archive.com/annou...@apache.org/msg00333.html

Thanks.


-- 
View this message in context: 
http://www.nabble.com/Email-validation-for-comma-separated-list---in-1.1.5--tp22380998p22380998.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



inputTextHelp - style of help text

2008-12-11 Thread fischman_98

Is there a way to make the help text a different color and/or font.

For example:  I would like to the help text to be light grey...and the text
the user enters to be black.

Can this be done?

Don't see any style attributes associated with the help text.

Thanks.
Matt
-- 
View this message in context: 
http://www.nabble.com/inputTextHelp---style-of-help-text-tp20964775p20964775.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Integrate flash movie in JSF

2008-12-09 Thread fischman_98

I saw the media component was released in version 1.1.7, but I don't see it
in any of the tld or api documentation.

Is it included in Tomahawk 1.1.7 and beyond?

Thank you.

Matt



Hazem Saleh-2 wrote:
> 
> use the media component.
> 
> On Fri, Oct 17, 2008 at 7:23 PM, Andreas Niemeyer <
> [EMAIL PROTECTED]> wrote:
> 
>> Hi,
>>
>> Is there a "simple" way to put a flash movie with the  Tag in a JSF
>> page?
>>
>> Maybe the use of a JSP page might simpler, but when using JSP pages they
>> breaks the lifecycle, or?
>>
>>
>> Regards,
>> Andreas
>>
>>
> 
> 
> -- 
> Hazem Ahmed Saleh Ahmed
> 
> Author of (The Definitive Guide to Apache MyFaces and Facelets):
> http://www.amazon.com/Definitive-Guide-Apache-MyFaces-Facelets/dp/1590597370
> 
> Web blog: http://www.jroller.com/page/HazemBlog
> 
> [Web 2.0] Google Maps Integration with JSF:
> http://code.google.com/p/gmaps4jsf/
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Integrate-flash-movie-in-JSF-tp20037629p20921314.html
Sent from the MyFaces - Users mailing list archive at Nabble.com.



What is faces-config.xml.l4t?

2007-10-10 Thread fischman_98

Can anyone tell me what this file - faces-config.xml.l4t - is?  

How was it generated?

I was using exadel studio pro.  I'm now using Red Hat Developer
Studio...it's been there since the beginning.
-- 
View this message in context: 
http://www.nabble.com/What-is-faces-config.xml.l4t--tf4604437.html#a13147406
Sent from the MyFaces - Users mailing list archive at Nabble.com.



navigation - javascript errors

2007-09-20 Thread fischman_98

Sticking to the same subject of error-page (at this point I'm looking into
another solution)...any reason why the 's are generating
javascript errors when the error-page is displayed?

I have a footer with hardcoded strings in the action but the upon clicking
the link...a javascript error occurs.

Thanks.
-- 
View this message in context: 
http://www.nabble.com/%3Cerror-page%3E-navigation---javascript-errors-tf4491316.html#a12809172
Sent from the MyFaces - Users mailing list archive at Nabble.com.



web.xml and extensionFilter Mapping

2007-09-20 Thread fischman_98

I am having trouble understanding why a file with the url-pattern .jsf works
for the error page but the url-pattern /faces/* doesn't.  Any thoughts? 
Thanks.

filter-mapping
 
  extensionsFilter
  *.jsf
 
 
  extensionsFilter
  /faces/*
 

This Works:

  500
  /test1.jsf
 

This Doesn't:

  500
  /faces/test1.jsp
 
-- 
View this message in context: 
http://www.nabble.com/web.xml-%3Cerror-page%3E-and-extensionFilter-Mapping-tf4489016.html#a12802162
Sent from the MyFaces - Users mailing list archive at Nabble.com.



NullPointerException after Session expiration - MYFACES-1075

2007-09-18 Thread fischman_98

To All:

Can I get a little more description on this fix...what happens now if a page
is refreshed, button or link clicked (requiring navigation), etc. and the
session has expired?

What takes place to prohibit an exception and what happens on the client
side?

Thanks for the new release.
-- 
View this message in context: 
http://www.nabble.com/NullPointerException-after-Session-expiration---MYFACES-1075-tf4477738.html#a12767975
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Custom Validation Messsage for required in 1.2.0 (Issue #: 81)

2007-09-10 Thread fischman_98

Saw that "Enable the message displayed for "required" validation, conversion,
and validation to be overridden by the page author (JSP or non-JSP)." has
been included in the latest core release.

Is the change in the h:inputText?  What is the attribute?

Has the javadoc been updated?

Thanks.



-- 
View this message in context: 
http://www.nabble.com/Custom-Validation-Messsage-for-required-in-1.2.0-%28Issue--%3A-81%29-tf4416616.html#a12597255
Sent from the MyFaces - Users mailing list archive at Nabble.com.


Re: tld documentation for tomahawk 1.1.5 released April 18, 2007

2007-04-26 Thread fischman_98

Paul,

Thanks.  What about the imageLoop component...I can't find it...looks like
the other new components are there.

Matt



Paul Spencer-3 wrote:
> 
> You can get the current TLD documentation from the Project Information
> section for each project
> on the MyFaces website.  In the case of Tomahawk see
> http://myfaces.apache.org/tomahawk/project-reports.html
> 
> Paul Spencer
> 
> 
> fischman_98 wrote:
>> To All:
>> 
>> Is there tld link for the latest 1.1.5 (released April 18, 2007)
>> available
>> anywhere...or anywhere else to find documentation on the new features
>> describe in the release notes (
>> http://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12312397&styleName=Html&projectId=12310272
>> http://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12312397&styleName=Html&projectId=12310272
>> )?
>> 
>> Thanks.
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/tld-documentation-for-tomahawk-1.1.5-released-April-18%2C-2007-tf3652800.html#a10205418
Sent from the MyFaces - Users mailing list archive at Nabble.com.



tld documentation for tomahawk 1.1.5 released April 18, 2007

2007-04-26 Thread fischman_98

To All:

Is there tld link for the latest 1.1.5 (released April 18, 2007) available
anywhere...or anywhere else to find documentation on the new features
describe in the release notes (
http://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12312397&styleName=Html&projectId=12310272
http://issues.apache.org/jira/secure/ReleaseNote.jspa?version=12312397&styleName=Html&projectId=12310272
)?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/tld-documentation-for-tomahawk-1.1.5-released-April-18%2C-2007-tf3652800.html#a10204243
Sent from the MyFaces - Users mailing list archive at Nabble.com.



t:validateEmail - doesn't ignore white space

2007-02-15 Thread fischman_98

Is there any way to get  to ignore leading and trailing
spaces?  It currently fails if there are spaces leading or trailing (or
both) an  otherwise valid email.

Is javascript (I'm thinking in the onSubmit of the form) the only way to
resolve this?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/t%3AvalidateEmail---doesn%27t-ignore-white-space-tf3235937.html#a8993167
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: getRowIndex() = -1 when restoring saved view state

2006-12-24 Thread fischman_98

Thanks for the response Mike, but the  IS inside the
, isn't it? (I re-pasted the example jsf)  The UIData binding
variable is getting a valid (and correct) row(column) index at all other
times except when the view state is restored using the method (described in
the original post).

 
 
 
 
 

Off to do some last minute Christmas shopping...Merry Christmas to all!

BTW - I did a hack this way to make it work...since the managed bean is
request scoped, I declared a private int and initialize it to zero.  I
increment it inside the getMainItemCss() method and if it doesn't equal the
rowIndex, I set the row index to the to the private int.

private int i = 0;

public String getMainItemCss() {
...
if (mainColumns.getRowIndex() != i)
mainColumns.setRowIndex(i);
i++
...









Mike Kienenberger wrote:
> 
> The rowIndex (really columnIndex) in your example will always remain
> at -1 because there are no t:column components under t:columns.
> 
> Put your t:commandLink inside a t:column.
> 
> On 12/23/06, fischman_98 <[EMAIL PROTECTED]> wrote:
>>
>> Upon restoring a view from a saved state (see:
>> http://www.nabble.com/How-can-i-manually-save-and-restore-a-view%27s-state--tf1258390.html#a3414026
>> manually save and restore a view's state (by: Nico Krijnen)  I am seeing
>> something I don't understand
>>
>> I am binding a transient UIData variable to a  tag.  When the
>> view is restored, the isRowAvailable() equals true and the getRowCount
>> equals the number of rows (6 in my case)but the getRowIndex equals -1
>> even though the  is iterating through all six rows.  (I know
>> it's
>> iterating six times b/c I can see the call to
>> navigatorBean.getMainItemCss
>> getting called six times - old school printlns!)
>>
>> Anyone know the reason for this?
>>
>> In the Managed Bean:
>>
>> private transient UIData mainColumns;
>>
>> In the .jsf
>>
>> > value="#{navigatorBean.navigatorBlankRow}">
>> > var="mainItems"
>> styleClass="#{navigatorBean.mainItemCss}"
>> binding="#{navigatorBean.mainColumns}">
>> > title="#{mainItems.label}"
>>
>> onmouseover="expandcontent('sc#{navigatorBean.mainColumns.rowIndex}',
>> this)" />
>> 
>> 
>>
>> --
>> View this message in context:
>> http://www.nabble.com/getRowIndex%28%29-%3D--1-when-restoring-saved-view-state-tf2875166.html#a8036083
>> Sent from the MyFaces - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/getRowIndex%28%29-%3D--1-when-restoring-saved-view-state-tf2875166.html#a8042761
Sent from the MyFaces - Users mailing list archive at Nabble.com.



getRowIndex() = -1 when restoring saved view state

2006-12-23 Thread fischman_98

Upon restoring a view from a saved state (see: 
http://www.nabble.com/How-can-i-manually-save-and-restore-a-view%27s-state--tf1258390.html#a3414026
manually save and restore a view's state (by: Nico Krijnen)  I am seeing
something I don't understand

I am binding a transient UIData variable to a  tag.  When the
view is restored, the isRowAvailable() equals true and the getRowCount
equals the number of rows (6 in my case)but the getRowIndex equals -1
even though the  is iterating through all six rows.  (I know it's
iterating six times b/c I can see the call to navigatorBean.getMainItemCss
getting called six times - old school printlns!)

Anyone know the reason for this?

In the Managed Bean:

private transient UIData mainColumns;

In the .jsf







-- 
View this message in context: 
http://www.nabble.com/getRowIndex%28%29-%3D--1-when-restoring-saved-view-state-tf2875166.html#a8036083
Sent from the MyFaces - Users mailing list archive at Nabble.com.



TOMAHAWK-606 - t:commandLink does not work - stil having problems

2006-12-06 Thread fischman_98

I saw that this issue was marked resolved 
http://issues.apache.org/jira/browse/TOMAHAWK-606?page=comments#action_12437022
TOMAHAWK-606 

BUT I am still getting it even after downloading the latest (12/6/2006)
nightly builds.  Even tried to change the tag to h: and still seems to
appear.  

Any thoughts!?!?

Here's the error message from Firefox:

Error: f.elements['header:f2:_idcl'] has no properties
Source File: http://localhost:8080/ngsimages/welcome.jsf
Line: 126

Here's the code:










  





 








 




 




 


  










-- 
View this message in context: 
http://www.nabble.com/TOMAHAWK-606---t%3AcommandLink-does-not-work---stil-having-problems-tf2772214.html#a7732656
Sent from the MyFaces - Users mailing list archive at Nabble.com.



createComponent HtmlCommandLink generating ServletException

2006-10-28 Thread fischman_98

Trying to dynamically create a command link...any thoughts?  Doesn't seem to
be catching an exception in the setterbut it's not getting rendered. 
Thanks.

In the JSP




In the Bean:
private HtmlCommandLink lightboxCLink;

public void setLightboxCLink(HtmlCommandLink l) {
lightboxCLink = l;
}

public HtmlCommandLink getLightboxCLink() {

if (lightboxCLink == null) {
try {
lightboxCLink = (HtmlCommandLink)
getApplication().createComponent(HtmlCommandLink.COMPONENT_TYPE);
lightboxCLink.setId("test");

lightboxCLink.setAction(getApplication().createMethodBinding(
"#{exploreBean.getJumpLinkText}", 
null));
lightboxCLink.setValue("Hello");
} catch (NullPointerException npe) {
System.out.println("NullPointerException");
npe.printStackTrace();
} catch (FacesException fe) {
System.out.println("FacesException");
fe.printStackTrace();
}
}
return lightboxCLink;
}

javax.servlet.ServletException: javax.faces.component.html.HtmlCommandLink
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:44)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)

-- 
View this message in context: 
http://www.nabble.com/createComponent-HtmlCommandLink-generating-ServletException-tf2531311.html#a7053814
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Navigation Rule vs No Rule and dataTable First Row

2006-10-24 Thread fischman_98

I have a page that implements the dataTable and dataScroller.  Below the
table I have a login form.  

Lets say I scroll to page six...submit the form with a successful
return...with no navigation rule (I want to display the same page!), the
page is restored and rendered with the dataTable still on page six.  

If I create a navigation rule (On success go to same page - redirect: no),
the dataTable does not appear to be restored in the restore view phase and
the dataTable re-initializes to a first row of zero.

Do I need to save the state of the current row when submitting a form?  Is
the submission of the form causing the dataTable to not be restored?

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Navigation-Rule-vs-No-Rule-and-dataTable-First-Row-tf2503801.html#a6980554
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: datascroller - hidden input autoscroller moves to next line

2006-10-13 Thread fischman_98

After searching a little on the web, I found the following CSS solution...

add td img {display:block} in your CSS.

http://www.thescripts.com/forum/thread96754.html
http://www.thescripts.com/forum/thread96754.html 

MF


I just set up MyFaces and Tomahawk to 1.1.5 Snapshot to deal with the issue
solved by  http://issues.apache.org/jira/browse/TOMAHAWK-644 TOMAHAWK-644 . 
Now, in IE (obviously), the html code generated from the datascroller is
adding an new line before a closing ...this is messing up the format
for the first scrollfirst img on the scrollbarfrom my investigation, the
 needs to be on the same line to have all the images line up properly.

Any way to resolve this?  Is this considered a bug fix?

here is the html code that is generatedI bolded the culprit. (I don't
know how to display the img code only so it looks like the images are trying
to be included in the post - sorry)



 # 
/ngsimages/apps/ngsimages/images/arrow-first.gif  

 #  /ngsimages/apps/ngsimages/images/arrow-fr.gif   # 
/ngsimages/apps/ngsimages/images/arrow-previous.gif   # 1  # 2  # 

-- 
View this message in context: 
http://www.nabble.com/datascroller---hidden-input-autoscroller-moves-%3C-td%3E-to-next-line-tf2434305.html#a6798088
Sent from the MyFaces - Users mailing list archive at Nabble.com.



datascroller - hidden input autoscroller moves to next line

2006-10-12 Thread fischman_98

I just set up MyFaces and Tomahawk to 1.1.5 Snapshot to deal with the issue
solved by  http://issues.apache.org/jira/browse/TOMAHAWK-644 TOMAHAWK-644 . 
Now, in IE (obviously), the html code generated from the datascroller is
adding an new line before a closing ...this is messing up the format
for the first scrollfirst img on the scrollbarfrom my investigation, the
 needs to be on the same line to have all the images line up properly.

Any way to resolve this?  Is this considered a bug fix?

here is the html code that is generatedI bolded the culprit. (I don't
know how to display the img code only so it looks like the images are trying
to be included in the post - sorry)



 # 
/ngsimages/apps/ngsimages/images/arrow-first.gif  

 #  /ngsimages/apps/ngsimages/images/arrow-fr.gif   # 
/ngsimages/apps/ngsimages/images/arrow-previous.gif   # 1  # 2 http://www.nabble.com/datascroller---hidden-input-autoscroller-moves-%3C-td%3E-to-next-line-tf2434305.html#a6788082
Sent from the MyFaces - Users mailing list archive at Nabble.com.



LifecycleFactory - no factory DEFAULT configured for this application

2006-10-10 Thread fischman_98

Do I need to set something up in the faces-Config.xml file to make this work? 
Trying to add a phaseListener to a requestScope managedBean and get
java.lang.IllegalArgumentException: no factory DEFAULT configured for this
application.

Thanks.

Matt

Code:

try {
LifecycleFactory factory = (LifecycleFactory) 
FactoryFinder

.getFactory(FactoryFinder.LIFECYCLE_FACTORY);
Lifecycle lifecycle = factory

.getLifecycle(LifecycleFactory.DEFAULT_LIFECYCLE);

lifecycle.addPhaseListener(new PhaseListener() {
public void beforePhase(PhaseEvent event) {
...
}

public void afterPhase(PhaseEvent event) {
...
}

public PhaseId getPhaseId() {
return PhaseId.RENDER_RESPONSE;
}

});
} catch (Exception e) {
e.printStackTrace();
}

And Stack Trace:
java.lang.IllegalArgumentException: no factory DEFAULT configured for this
application.
at javax.faces.FactoryFinder.getFactory(FactoryFinder.java:94)
at com.ngsimages.lightbox.LightboxBean.(LightboxBean.java:56)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown
Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:274)
at
org.apache.myfaces.shared_impl.util.ClassUtils.newInstance(ClassUtils.java:265)
at
org.apache.myfaces.config.ManagedBeanBuilder.buildManagedBean(ManagedBeanBuilder.java:50)
at
org.apache.myfaces.el.VariableResolverImpl.resolveVariable(VariableResolverImpl.java:311)
at
org.apache.myfaces.config.LastVariableResolverInChain.resolveVariable(LastVariableResolverInChain.java:42)
at
org.apache.myfaces.el.ValueBindingImpl$ELVariableResolver.resolveVariable(ValueBindingImpl.java:574)
at org.apache.commons.el.NamedValue.evaluate(NamedValue.java:124)
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndProperty(ValueBindingImpl.java:455)
at
org.apache.myfaces.el.ValueBindingImpl.isReadOnly(ValueBindingImpl.java:132)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:68)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:78)
at
org.apache.myfaces.shared_impl.util.RestoreStateUtils.recursivelyHandleComponentReferencesAndSetValid(RestoreStateUtils.java:41)
at
org.apache.myfaces.lifecycle.LifecycleImpl.restoreView(LifecycleImpl.java:179)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:66)
at javax.faces.webapp.

Re: Access Request Scope Bean in Servlet Filter

2006-10-04 Thread fischman_98

Marco,

Thanks so much...that is exactly what I was looking for...Although I think
I'm going to go with the thoughts at the bottom of the WIKI...using the
Phase Listener..

In closing, I'm sure there may be better ways for doing this but more
importantly, there are probably good reasons for not doing this at all and
changing to Phase Listeners and staying within the JSF framework which I
think is an important topic for continued discussion.



Marco P?hler-2 wrote:
> 
> Hi fischman_98,
> 
> I think you can use methods from Nabbles AccessFacesContextFromServlet.
> 
> http://wiki.apache.org/myfaces/AccessFacesContextFromServlet
> 
> hope that helps,
> 
> Marco
> --
> http://www.faq-kontaktlinsen.de
> http://www.parfuem-faq.de
> 
> fischman_98 schrieb:
>> Is there anyway to access a ManagedBean that is set in the faces config
>> file
>> to request scope in a ServletFiler?
>>
>> What I want to do is confirm that the bean exists before letting the view
>> display.
>>
>> Thanks.
>>
>>
>>   
> 
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Access-Request-Scope-Bean-in-Servlet-Filter-tf2379718.html#a6646999
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Access Request Scope Bean in Servlet Filter

2006-10-03 Thread fischman_98

Is there anyway to access a ManagedBean that is set in the faces config file
to request scope in a ServletFiler?

What I want to do is confirm that the bean exists before letting the view
display.

Thanks.


-- 
View this message in context: 
http://www.nabble.com/Access-Request-Scope-Bean-in-Servlet-Filter-tf2379718.html#a6631980
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: getRenderKitId returning null

2006-09-29 Thread fischman_98

Version:  MyFaces 1.1.3

As far as the point in the lifecycleA commandButton has invoked an
actionthe second to last call (before it returns null) of the action
method calls the method to restore a previous view...so is it Update Model
Values or Invoke Application?

Thanks.


Dennis Byrne wrote:
> 
> At which point in the lifecycle are you calling this method?  Which
> version of MyFaces?  
> 
> See this [1] for a very looong history on the subject.  The behavior of
> this method has changed across JSF specs and JSF implementations
> accordingly.
> 
> Dennis Byrne
> 
> [1] https://issues.apache.org/jira/browse/MYFACES-1155
> 
>>-Original Message-
>>From: fischman_98 [mailto:[EMAIL PROTECTED]
>>Sent: Friday, September 29, 2006 11:29 AM
>>To: users@myfaces.apache.org
>>Subject: Re: getRenderKitId returning null
>>
>>
>>You're right and the title will lead to confusion...what I meant to ask
is...
>>
>>Why is the call to getRenderKit return null?
>>
>>I have nothing set in faces config regarding Rendererso any
thoughts!?!?
>>
>>
>>
>>Jeff Bischoff wrote:
>>> 
>>> He's right, your code is simply throwing the exception when it discovers 
>>> that getRenderKitId() returns null. So you should be asking why the ID 
>>> is null...
>>> 
>>> Dennis Byrne wrote:
>>>> The stack trace suggests this is not happending when you call
>>>> UIViewRoot.getRenderKitId().
>>>> 
>>>> Is this code from Nico in the MyFaces repository?
>>>> 
>>>> Dennis Byrne
>>>> 
>>>>> -Original Message-
>>>>> From: fischman_98 [mailto:[EMAIL PROTECTED]
>>>>> Sent: Thursday, September 28, 2006 09:36 PM
>>>>> To: users@myfaces.apache.org
>>>>> Subject: getRenderKitId exception
>>>>>
>>>>>
>>>>> I'm getting an exception (see below) when calling
>>>>> uiViewRoot.getRenderKitId().  I've started reading about renderers
>>>>> with
>>>>> custom components, but I'm not doing anything special here...
>>>>>
>>>>> Anyone know how to solve this?
>>>>>
>>>>> BTW - I'm using this from excellent code provide by Nico Krijnen Mar
>>>>> 14,
>>>>> 2006; 09:58am...
>>>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>>>>  
>>>>>
>>>>> if (uiViewRoot.getRenderKitId() == null) {
>>>>>// Just to be sure...
>>>>>// uiViewRoot.setRenderKitId(renderKitId);
>>>>>   System.out.println("4.2");
>>>>>   throw new RuntimeException("FIX ME IF THIS HAPPENS");
>>>>> }
>>>>>
>>>>> java.lang.RuntimeException: FIX ME IF THIS HAPPENS
>>>>>   at
>>>>> com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
>>>>>   at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
>>>>>   at com.ngsimages.history.ViewState.restore(ViewState.java:57)
>>>>>   at
>>>>> com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
>>>>>   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>>>>   at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>>>>   at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>>>>   at java.lang.reflect.Method.invoke(Unknown Source)
>>>>>   at
>>>>> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>>>>>   at
>>>>> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>>>>>   at javax.faces.component.UICommand.broadcast(UICommand.java:106)
>>>>>   at
>>>>> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>>>>>   at
>>>>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>>>>>   at
>>>>> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>>>>>   at
>>>>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImp

Re: getRenderKitId exception

2006-09-29 Thread fischman_98

Dennis,

I found this code in nabbleI provided the link...

Thanks for the reply, and as was mentioned in a reply, I titled this
question incorrectly...I should have asked why the GetRenderKitId is
returning null...any thoughts?

Thanks.



Dennis Byrne wrote:
> 
> The stack trace suggests this is not happending when you call
> UIViewRoot.getRenderKitId().
> 
> Is this code from Nico in the MyFaces repository?
> 
> Dennis Byrne
> 
>>-Original Message-
>>From: fischman_98 [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, September 28, 2006 09:36 PM
>>To: users@myfaces.apache.org
>>Subject: getRenderKitId exception
>>
>>
>>I'm getting an exception (see below) when calling
>>uiViewRoot.getRenderKitId().  I've started reading about renderers with
>>custom components, but I'm not doing anything special here...
>>
>>Anyone know how to solve this?
>>
>>BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
>>2006; 09:58am...
>>http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>> 
>>
>>if (uiViewRoot.getRenderKitId() == null) {
>>// Just to be sure...
>>// uiViewRoot.setRenderKitId(renderKitId);
>>  System.out.println("4.2");
>>  throw new RuntimeException("FIX ME IF THIS HAPPENS");
>>}
>>
>>java.lang.RuntimeException: FIX ME IF THIS HAPPENS
>>  at
>>com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
>>  at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
>>  at com.ngsimages.history.ViewState.restore(ViewState.java:57)
>>  at
>>com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>  at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>  at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>  at java.lang.reflect.Method.invoke(Unknown Source)
>>  at
>>org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>>  at
>>org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>>  at javax.faces.component.UICommand.broadcast(UICommand.java:106)
>>  at
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>>  at
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>>  at
>>org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>>  at
>>org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>>  at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>  at
>>org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>  at
>>org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>  at
>>org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>  at
>>org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>  at
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>  at
>>org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
>>  at
>>org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
>>  at
>>org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>  at
>>org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>  at
>>org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
>>  at
>>o

Re: getRenderKitId returning null

2006-09-29 Thread fischman_98

You're right and the title will lead to confusion...what I meant to ask is...

Why is the call to getRenderKit return null?

I have nothing set in faces config regarding Rendererso any thoughts!?!?



Jeff Bischoff wrote:
> 
> He's right, your code is simply throwing the exception when it discovers 
> that getRenderKitId() returns null. So you should be asking why the ID 
> is null...
> 
> Dennis Byrne wrote:
>> The stack trace suggests this is not happending when you call
>> UIViewRoot.getRenderKitId().
>> 
>> Is this code from Nico in the MyFaces repository?
>> 
>> Dennis Byrne
>> 
>>> -Original Message-
>>> From: fischman_98 [mailto:[EMAIL PROTECTED]
>>> Sent: Thursday, September 28, 2006 09:36 PM
>>> To: users@myfaces.apache.org
>>> Subject: getRenderKitId exception
>>>
>>>
>>> I'm getting an exception (see below) when calling
>>> uiViewRoot.getRenderKitId().  I've started reading about renderers with
>>> custom components, but I'm not doing anything special here...
>>>
>>> Anyone know how to solve this?
>>>
>>> BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
>>> 2006; 09:58am...
>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>> http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
>>>  
>>>
>>> if (uiViewRoot.getRenderKitId() == null) {
>>>// Just to be sure...
>>>// uiViewRoot.setRenderKitId(renderKitId);
>>> System.out.println("4.2");
>>> throw new RuntimeException("FIX ME IF THIS HAPPENS");
>>> }
>>>
>>> java.lang.RuntimeException: FIX ME IF THIS HAPPENS
>>> at
>>> com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
>>> at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
>>> at com.ngsimages.history.ViewState.restore(ViewState.java:57)
>>> at
>>> com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
>>> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
>>> at java.lang.reflect.Method.invoke(Unknown Source)
>>> at
>>> org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
>>> at
>>> org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
>>> at javax.faces.component.UICommand.broadcast(UICommand.java:106)
>>> at
>>> javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
>>> at
>>> javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
>>> at
>>> org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
>>> at
>>> org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
>>> at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>> at
>>> org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>> at
>>> org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
>>> at
>>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
>>> at
>>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
>>> at
>>> org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
>>> at
>>> org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
>>> at
>>> or

getRenderKitId exception

2006-09-28 Thread fischman_98

I'm getting an exception (see below) when calling
uiViewRoot.getRenderKitId().  I've started reading about renderers with
custom components, but I'm not doing anything special here...

Anyone know how to solve this?

BTW - I'm using this from excellent code provide by Nico Krijnen Mar 14,
2006; 09:58am...
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
http://www.nabble.com/FW%3A-How-can-i-manually-save-and-restore-a-view%27s-state--tf1279120.html#a3397984
 

if (uiViewRoot.getRenderKitId() == null) {
// Just to be sure...
// uiViewRoot.setRenderKitId(renderKitId);
System.out.println("4.2");
throw new RuntimeException("FIX ME IF THIS HAPPENS");
}

java.lang.RuntimeException: FIX ME IF THIS HAPPENS
at
com.ngsimages.history.ViewState.restoreComponentState(ViewState.java:151)
at com.ngsimages.history.ViewState.restoreView(ViewState.java:94)
at com.ngsimages.history.ViewState.restore(ViewState.java:57)
at
com.ngsimages.security.AuthenticationBean.login(AuthenticationBean.java:135)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.apache.myfaces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:129)
at
org.apache.myfaces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:63)
at javax.faces.component.UICommand.broadcast(UICommand.java:106)
at 
javax.faces.component.UIViewRoot._broadcastForPhase(UIViewRoot.java:94)
at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:168)
at
org.apache.myfaces.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:343)
at
org.apache.myfaces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:86)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:137)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.hibernate.com.ngsimages.persistence.HibernateSessionRequestFilter.doFilter(HibernateSessionRequestFilter.java:40)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:118)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
at 
org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
at java.lang.Thread.run(Unknown Source)

-- 
View this message in context: 
ht

STATE_SAVING_METHOD client state resubmitted

2006-09-24 Thread fischman_98

I am using STATE_SAVING_METHOD set to client.  I have a session scoped bean
that performs login/logout methods and has two properties with public
getter/setters, username & password. 

The problem: 
1. A user logs in successfully, does some work, logs out. 
2. The session is invalidated when the user logs out. 
3. Hit the browser back button until the user gets to the login page again,
hit refresh, the user is logged in again without re-entering login
information. 

Is this due to the session state being saved on the client within the view? 

More importantly, is there anyway to keep the successful login from
happening with state_saving_method=client? 

Thanks. 
-- 
View this message in context: 
http://www.nabble.com/STATE_SAVING_METHOD-client-state-resubmitted-tf2327964.html#a6476425
Sent from the MyFaces - Users mailing list archive at Nabble.com.



STATE_SAVING_METHOD client security

2006-09-24 Thread fischman_98

I am using STATE_SAVING_METHOD set to client.  I have a session scoped bean
that performs login/logout methods and has two properties with public
getter/setters, username & password.

The problem:
1. A user logs in successfully, does some work, logs out. 
2. The session is invalidated when the user logs out. 
3. Hit the browser back button until the user gets to the login page again,
hit refresh, the user is logged in again without re-entering login
information.

Is this due to the session state being saved on the client within the view?

More importantly, is there anyway to keep the successful login from
happening with state_saving_method=client?

Thanks.


-- 
View this message in context: 
http://www.nabble.com/STATE_SAVING_METHOD-client-security-tf2327841.html#a6476069
Sent from the MyFaces - Users mailing list archive at Nabble.com.



Re: Horizontal Panel Navigation - panelNavigation2

2006-08-03 Thread fischman_98

This image displays what's happening with the menu...Clicking the 'E' or the
'I' only highlights the letter and doesn't display the menu options.  I have
posted the code below.

http://www.nabble.com/user-files/189/menu.gif 
Added the forceId, didn't seem to change anything.  

Is there something wrong with the stylesheet?

Can someone post a 'working' css stylesheet.

Thanks.





› 


http://www.irian.at";
target="_blank">
› 



› 



http://www.yahoo.com";
target="_blank" />


› 



› 



http://mail.yahoo.com";
target="_blank" />


-- 
View this message in context: 
http://www.nabble.com/Horizontal-Panel-Navigation---panelNavigation2-tf2035583.html#a5638417
Sent from the MyFaces - Users forum at Nabble.com.



Horizontal Panel Navigation - panelNavigation2

2006-08-01 Thread fischman_98

Having a lot of trouble getting then Horizontal PanelNavigation to work like
the irian example - 
http://example.irian.at/example-simple-20060801/panelnavigation_4.jsf
http://example.irian.at/example-simple-20060801/panelnavigation_4.jsf 

The dynamic dropdown part is not dynamically displaying upon mouseover.

I have cut and pasted the irian source and used the css.  Can anyone post
some test code and css that they have working?

Thanks.

I am using the June 15 release tomahawk 1.1.3...and MyFaces 1.1.3.


-- 
View this message in context: 
http://www.nabble.com/Horizontal-Panel-Navigation---panelNavigation2-tf2035583.html#a5600977
Sent from the MyFaces - Users forum at Nabble.com.



binding in t:datatable causing duplicate id's on browser refresh

2006-07-13 Thread fischman_98

I am binding a sessionScoped managed-bean UIData property to a t:dataTable
(also using t:dataScroller in the header/footer facets).  Initial display is
fine.

Upon hitting refresh on the browser...I get the following error (full error
below).  javax.servlet.ServletException: Client-id : _idJsp63first is
duplicated in the faces tree.

After some investigation, I found that if I reset the managed-bean UIData
property (set the UIData instance variable to null), all is well.  I assume
that if the managed bean was requestScope'd this would take care of the
problem as well.

What is the preferred (aka Best) method for reseting the managed-bean
property and avoiding this error?

Full Error
javax.faces.component.UIViewRoot,ViewId: /explore/explore.jsp][Class:
org.apache.myfaces.custom.div.Div,Id: wrapper][Class:
org.apache.myfaces.custom.div.Div,Id: contentTop][Class:
org.apache.myfaces.custom.div.Div,Id: searchResults][Class:
javax.faces.component.html.HtmlForm,Id: _idJsp45][Class:
org.apache.myfaces.component.html.ext.HtmlDataTable,Id: data][Class:
org.apache.myfaces.custom.datascroller.HtmlDataScroller,Id: _idJsp63][Class:
javax.faces.component.html.HtmlCommandLink,Id: _idJsp63first]}


-- 
View this message in context: 
http://www.nabble.com/binding-in-t%3Adatatable-causing-duplicate-id%27s-on-browser-refresh-tf1940566.html#a5318863
Sent from the MyFaces - Users forum at Nabble.com.



component binding causing duplicate ids on browser refresh - t:datatable

2006-07-13 Thread fischman_98

Using MyFaces 1.1.3 and Tomahawk 1.1.3...

I have a t:datatable and have implemented t:datascroller in the
header/footer facet.

When I add component binding to the dataTablethe page is rendered
fine...but when I hit refresh on the browser, I receive the following
error...

javax.servlet.ServletException: Client-id : _idJsp63first is duplicated in
the faces tree. Component : _idJsp45:data:_idJsp63first, path:
{Component-Path : [Class: javax.faces.component.UIViewRoot,ViewId:
/explore/explore.jsp][Class: org.apache.myfaces.custom.div.Div,Id:
wrapper][Class: org.apache.myfaces.custom.div.Div,Id: contentTop][Class:
org.apache.myfaces.custom.div.Div,Id: searchResults][Class:
javax.faces.component.html.HtmlForm,Id: _idJsp45][Class:
org.apache.myfaces.component.html.ext.HtmlDataTable,Id: data][Class:
org.apache.myfaces.custom.datascroller.HtmlDataScroller,Id: _idJsp63][Class:
javax.faces.component.html.HtmlCommandLink,Id: _idJsp63first]}

The managed bean is sessionScope.

Any thoughts?

Code snippet is below...
JSP








.
.
.
sessionScope managedBean
private UIData resultsTable;
.
.
.
/**
 * @return Returns the resultsTable.
 */
public UIData getResultsTable() {
return resultsTable;
}

/**
 * @param resultsTable
 *The resultsTable to set.
 */
public void setResultsTable(UIData resultsTable) {
this.resultsTable = resultsTable;
}

-- 
View this message in context: 
http://www.nabble.com/component-binding-causing-duplicate-ids-on-browser-refresh---t%3Adatatable-tf1938663.html#a5312476
Sent from the MyFaces - Users forum at Nabble.com.



Two dataScrollers, One dataTable throwing ServletException

2006-07-11 Thread fischman_98

I'm using one dataTable and two data scrollers and I am getting the following
error...

javax.servlet.ServletException: facet 'first' already has a child
associated. current associated component id: _idJsp45:data:_idJsp46 class:
org.apache.myfaces.component.html.ext.HtmlGraphicImage

Any thoughts?  I have the dataTable wrapped in  tags (MyFaces
1.1.3)...the code is below.






























































































 

f:subview id value added to child t:div

2006-05-03 Thread fischman_98

Why does the subview id get added to the child div id?  Is there any way to
stop this from happening?

Example:


.
.
.



The resulting HTML is:


.
.
.





--
View this message in context: 
http://www.nabble.com/f%3Asubview-id-value-added-to-child-t%3Adiv-t1553506.html#a4220453
Sent from the MyFaces - Users forum at Nabble.com.



t:selectManyCheckbox - Make Checkbox label a link

2006-05-03 Thread fischman_98

Anyone know how to make the itemLabel of a SelectItem a href?

I'd like to produce a checkbox that looks like this:



  

  

COLUMBIA RIVER (WASHINGTON)


SUN



CLOUDS


View this message in context: t:selectManyCheckbox - Make Checkbox label a link
Sent from the MyFaces - Users forum at Nabble.com.


Re: Clear (Reset) dataTable (w/dataScroller) on new Query

2006-04-21 Thread fischman_98

So I need to bind the dataScroller to the bean and call the .setFirst(1)
prior to each query?

As for the other way, How can you make sure the same UIData object is not
re-used for each query?

Many thanks.
--
View this message in context: 
http://www.nabble.com/Clear-%28Reset%29-dataTable-%28w-dataScroller%29-on-new-Query-t1488705.html#a4034540
Sent from the MyFaces - Users forum at Nabble.com.



Clear (Reset) dataTable (w/dataScroller) on new Query

2006-04-21 Thread fischman_98

Have the standard search/search results display user interaction.  

After performing a search, I scroll to page three, then go back and perform
another search.  The results of the second query start on page 3 (not page
1).

How do I get the dataTable to ALWAYS start at page 1?

Results are populated using dataTable and pages made scrollable using
dataScroller.

Thanks.

Matt
--
View this message in context: 
http://www.nabble.com/Clear-%28Reset%29-dataTable-%28w-dataScroller%29-on-new-Query-t1488705.html#a4033193
Sent from the MyFaces - Users forum at Nabble.com.



Re: n x n dataTable (myFaces)

2006-03-31 Thread fischman_98

Thanks for the help.

So for this solution, I am locking in the three columns and go back to using
t:column (no s)is that right?

Was trying to make it dymamic for the future, but can't figure out how to
make the row and column data work in conjunction with one another.  Need to
somehow iterate through row objects that contain lists of column objects.

if the var in the t:table could be related to in the t:columns, that would
work.  Anyhow...any other thoughts on the topic?
--
View this message in context: 
http://www.nabble.com/n-x-n-dataTable-%28myFaces%29-t1365618.html#a3697622
Sent from the MyFaces - Users forum at Nabble.com.



Re: n x n dataTable (myFaces)

2006-03-29 Thread fischman_98

So for option 2, how do you reference index 0's one, two and three objects?

I was trying to reference the t:dataTable "var" in the t:columns?  This
wasn't working.

ie:

.
.
  http://www.nabble.com/n-x-n-dataTable-%28myFaces%29-t1365618.html#a3662225
Sent from the MyFaces - Users forum at Nabble.com.



Re: n x n dataTable (myFaces)

2006-03-29 Thread fischman_98

I guess I should have included this in the original message (probably
thinking it but didn't write it!)...

I want to put one row of database data into a single table column.

So in a 3xn table, the first three rows fetched from the database make three
columns of the first row in the displayed table, the second three rows
fetched from the database make three columns of the second row...and so on.

I think that changes how I have to impletement the dataTable...any
suggestions?

Thanks.
--
View this message in context: 
http://www.nabble.com/n-x-n-dataTable-%28myFaces%29-t1365618.html#a3662031
Sent from the MyFaces - Users forum at Nabble.com.



n x n dataTable (myFaces)

2006-03-29 Thread fischman_98

Can someone help me make a nxn dataTable using myFaces.  I want 3 columns and n number of rows)

Trying to use Tomahawk t:dataTable and t:columns, can't work it all out.  Can't figure out how to loop through the rows and only show the number of columns I want to display.

Thanks.


View this message in context: n x n dataTable (myFaces)
Sent from the MyFaces - Users forum at Nabble.com.