Re: Table Captions

2006-09-03 Thread Mike Kienenberger

On 9/3/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:

Backporting may be more than just a quick commit.  I seem to remember the code for 
printing the  element to be in the shared module.  This means if you add 
it to t:dataTable, it ends up in h:dataTable also.  If h:dataTable is to remain 
compliant with the JSF reference imlementation, something trickier would have to be 
done.


Almost all of our t:dataTable code works this way as well.
Typically, configurable support is added to the shared code with the
default behavior being off.

Like

...
doTheTableCaptionThing();
...


protected void doTheTableCaptionThing() {}

as the default value

Or

protected boolean shouldDisplayTableCaption() { return false; }

Then the t:dataTable subclass provides a functional method that turns
on the table caption.

protected boolean shouldDisplayTableCaption() { return true; }

For 1.2, the default behavior woudl also be to return true.


Re: Table Captions

2006-09-03 Thread Dennis Byrne
>> You could also backport this feature to the t:dataTable.
>> Should be pretty simple if it's already part of the 1.2 branch.
>>
>> Mike
>
>Mike, I will look into back porting this feature.
>
>Brad
>

Backporting may be more than just a quick commit.  I seem to remember the code 
for printing the  element to be in the shared module.  This means if you 
add it to t:dataTable, it ends up in h:dataTable also.  If h:dataTable is to 
remain compliant with the JSF reference imlementation, something trickier would 
have to be done.

Dennis Byrne




Re: RES: tomahawk config

2006-09-03 Thread noah

Are you using <%@ taglib uri="http://myfaces.apache.org/extensions";
prefix="x" %> in your pages instead of <%@ taglib
uri="http://myfaces.apache.org/tomahawk"; prefix="t" %>?
Or perhaps you have it declared in your page somewhere?
http://myfaces.apache.org/extensions was the tomahawk namespace many
releases ago (I think).  If you get rid of/replace all occurences of
it, I wouldn't be surprised if that solves your problem.

On 9/3/06, yangontha <[EMAIL PROTECTED]> wrote:


Hi,

Yes. Calendar is nested in the h:form





[It is working correctly with tomahawk.jar, previous version.]

The stack trace:-
org.apache.jasper.JasperException: The absolute uri:
http://myfaces.apache.org/extensions cannot be resolved in either web.xml or
the jar files deployed with this application

org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:50)

org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)

org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:114)

org.apache.jasper.compiler.TagLibraryInfoImpl.generateTLDLocation(TagLibraryInfoImpl.java:316)

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:147)
org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:418)
org.apache.jasper.compiler.Parser.parseDirective(Parser.java:483)
org.apache.jasper.compiler.Parser.parseElements(Parser.java:1543)
org.apache.jasper.compiler.Parser.parse(Parser.java:126)

org.apache.jasper.compiler.ParserController.doParse(ParserController.java:211)

org.apache.jasper.compiler.ParserController.parse(ParserController.java:100)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:146)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:267)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:255)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:556)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:293)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:291)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)

com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130)

com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)

org.apache.myfaces.webapp.filter.ExtensionsFilter.doFilter(ExtensionsFilter.java:144)


However I have not changed according to the 2 wiki pages.
I will read and change accordingly. (However just now I treid to change the
extension filter name and put in the myfaces-impl... myfaces-api...
caused another error. the servlet can't start. Probably I missed some point.
I will read again. I am not using Maven.)

thanks,





iamnoah wrote:
>
> Is your calendar nested inside an h:form?
>
> What is the error? Can you give us the stack trace?
>
> Have you tried
> http://wiki.apache.org/myfaces/Upgrading_to_Tomahawk_1%2e1%2e3
> and
> http://wiki.apache.org/myfaces/More_tips_on_Upgrading_to_Tomahawk_1%2e1%2e3
> ?
>
> On 9/1/06, yangontha <[EMAIL PROTECTED]> wrote:
>>
>> Hi,
>>
>> I am facing the same problem. Previously I use (tomahawk.jar) and
>> Calendar
>> works fine. then I changed to (tomahawk-1.1.3.jar) and it occured the
>> error.So I change back to (tomahawk.jar) and is working.
>> Now I want to use (1.1.3). Which commons file do I need to put? Can you
>> give
>> me more deatil information?
>> I have put the commons-fileupload-1.1.jar with tomahawk 1.1.3. But it is
>> not
>> working.
>> Which commons---.jar do I need to add?
>>
>> thanks in advance,
>>
>>
>> I just added the commons jar.. Non of the documentation states that this
>> was
>> needed.. a bit confusing.. but, I got the calendar working and it was
>> very
>> simple.. Nice to see something easy.. I've been fighting with the Sun JSF
>> impl for a few weeks and it's been disappointing..
>>
>> thanks
>> dan
>>
>> --
>> View this message in context:
>> http://www.nabble.com/tomahawk-config-tf2166374.html#a6093310
>> Sent from the MyFaces - Users forum at Nabble.com.
>>
>>
>
>

--
View this message in context: 
http://www.nabble.com/tomahawk-config-tf2166374.html#a6119321
Sent from the MyFaces - Users forum at Nabble.com.




Re: Table Captions

2006-09-03 Thread Brad Smith
On Sat, 2006-09-02 at 21:13 -0400, Mike Kienenberger wrote:
> On 9/2/06, Dennis Byrne <[EMAIL PROTECTED]> wrote:
> > I just checked the code and it appears to only be in the 1.2 branch.  It's 
> > more work, but you can always override the Renderer in JSF.
> 
> Brad,
> 
> You could also backport this feature to the t:dataTable.
> Should be pretty simple if it's already part of the 1.2 branch.

Thank you Dennis. 

Mike, I will look into back porting this feature.

Brad



signature.asc
Description: This is a digitally signed message part