You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Andreas Vombach <an...@psi.ch> on 2004/10/21 15:42:14 UTC

Re: newbie installation problem (build.xml:710)

They changed the location of jdom-b8.
In common.properties, line 59 type

jdom.loc=http://www.jdom.org/dist/binary/archive/jdom-b8.tar.gz

Cheers Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: more styling for TableColumns

Posted by Markus Wiederkehr <ma...@gmail.com>.
Table has some parameters to control the CSS class of table pages,
columns, rows and values (pagesClass, columnsClass, rowsClass and
valuesClass). You can use these parameters to apply some basic styles
to your table. You could bind an EvenOdd bean to rowsClass, for
example.

But you have even more control. The first parameter of
SimpleTableColumn or ExpressionTableColumn is the column name (the
parameter 'columns' of Table works as well). This name is used as CSS
class of the corresponding column. For example if the column name is
'date' the table will contain cells like this: <td
class="dateColumnValue">. Now all you have to do is to apply a style
to 'td.dateColumnValue'.

See http://jakarta.apache.org/tapestry/doc/ComponentReference/contrib.Table.html
for more details.

On Fri, 22 Oct 2004 10:27:15 +0200, Andreas Vombach
<an...@psi.ch> wrote:
> Thank you, Markus, the setValueRendererSource works well.
> Now, for even more styling the TableColumns I would like to set things
> like the background color and other attributes.
> I guess this is done in the style.css, anybody knows the naming?
> (table.header, th or other)
> Or another way to do it?
> 
> Thanks Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


more styling for TableColumns

Posted by Andreas Vombach <an...@psi.ch>.
Thank you, Markus, the setValueRendererSource works well.
Now, for even more styling the TableColumns I would like to set things 
like the background color and other attributes.
I guess this is done in the style.css, anybody knows the naming? 
(table.header, th or other)
Or another way to do it?

Thanks Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Styling for TableColumns

Posted by Markus Wiederkehr <ma...@gmail.com>.
I think you have to use setValueRendererSource():

SimpleTableColumn c = new SimpleTableColumn("wh_" + i +
    "ID", dn + ", " + i + ".", false));
c.setValueRendererSource(new BlockTableRendererSource(
    new ComponentAddress(getComponent("wh_" + i + "IDColumnValue"))));
list.add(c);

hth
Markus

On Thu, 21 Oct 2004 16:32:41 +0200, Andreas Vombach
<an...@psi.ch> wrote:
> I would like to style up my table columns in a way that their display
> names are not given in a string but set by a java class.
> This is useful e.g. to put all days of a month in a table header like |
> Fr, 1. | Sa, 2. | So, 3...
> I do so using the SimpleTableColumn class:
> 
>             for (int i = 1; i < 32; i++)
>             {
>                 String dn = getDayName(i);
>                  list.add(new SimpleTableColumn("wh_" + i + "ID", dn +
> ", " + i + ".", false));
>             }
>             setWorksheetColumns(list);
> 
> (former it was !wh_1ID:1:wh_1, !wh_2ID:2:wh_2, !wh_3ID:3:wh_3 ...)
> 
>     <span jwcid="wh_1IDColumnValue@Block">
>     <span jwcid="editableWh_1@TextField"
> value="ognl:components.table.tableRow.wh_1" size="3"/>
>     </span>
> 
> Unfortunately the Table does not get the link to the wh_1ID etc.
> anymore, how do I do it right?
> I guess the mistake is that the |strColumnName of the |SimpleTableColumn
> does not connect to colunm IDs?
> 
> Thanks Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Styling for TableColumns

Posted by Andreas Vombach <an...@psi.ch>.
I would like to style up my table columns in a way that their display 
names are not given in a string but set by a java class.
This is useful e.g. to put all days of a month in a table header like | 
Fr, 1. | Sa, 2. | So, 3...
I do so using the SimpleTableColumn class:

            for (int i = 1; i < 32; i++)
            {
                String dn = getDayName(i);
                 list.add(new SimpleTableColumn("wh_" + i + "ID", dn + 
", " + i + ".", false));
            }
            setWorksheetColumns(list);

(former it was !wh_1ID:1:wh_1, !wh_2ID:2:wh_2, !wh_3ID:3:wh_3 ...)

    <span jwcid="wh_1IDColumnValue@Block">
    <span jwcid="editableWh_1@TextField" 
value="ognl:components.table.tableRow.wh_1" size="3"/>
    </span>

Unfortunately the Table does not get the link to the wh_1ID etc. 
anymore, how do I do it right?
I guess the mistake is that the |strColumnName of the |SimpleTableColumn 
does not connect to colunm IDs?

Thanks Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Yet another fileservice question

Posted by James Sherwood <js...@romulin.com>.
Hello,

    I created a fileservice for the customer.

It works fine in IE 6,5 and Netscape and Mozilla.

When the customer tries to use the service(download the file) he gets the
name of the servlet in the box.
They are using IE 5.5(I dont have that version)

The code to put the file out to the browser is this:

//out is the service out which is ResponseOutputStream out

//gets the contentType from a hashmap using the file extension
out.setContentType(
    (String) _mimeTypes.get(file.getExtension().toLowerCase()));

//file.getFilename() returns the filename without the extension
   cycle.getRequestContext().getResponse().setHeader(
    "Content-Disposition",
    "attachment; filename=" + file.getFilename() );
   out.forceFlush();
//fb.getFile() returns the actual blob(byte[])
   out.write(fb.getFile());

Could this be a firewall problem?
Any ideas would be GREATLY appreciated

Thanks in advance,
James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie installation problem (build.xml:710)

Posted by FTP <ft...@atalos.com>.
Problem solved by manually downloading all the external jars!

Thanks

On Fri, 2004-10-22 at 10:02, FTP wrote:
> Sorry for my ignorance but the Tapestry "build.xml" doesn't have such a
> n entry and yes, I do use jdk 1.5. Is this a potential problem?
> 
> Now, when I run ant I get the following errors:
> 
> ----------------------
> Buildfile: build.xml
> 
> check-for-tomcat-dir:
> 
> proxyflags:
> 
> download-ext-framework:
> 
> setproxy:
> 
> testexistdest:
> Testing for .//ext-dist/jdom-b8.jar
> 
> installgz:
> 
> setproxy:
> 
> testexistdest:
> Testing for .//lib/ext/javassist-2.5.1.jar
> 
> installzip:
> 
> setproxy:
> 
> testexist:
> Testing for .//ext-dist/downloads/javassist-2.5.1/javassist.jar
> 
> download-alert:
> 
> *********************************************************************************
> * Due to the restrictions of the Apache Software License 2.0, it is
> necessary   *
> * to download some additional libraries that use non-ASL licenses. You
> should   *
> * be aware that redistribution of these files are regulated by their
> individual *
> * licenses. If you experience problems with the download, consult the
> file      *
> * ext-dist/README.html for details on how to configure the build to
> work        *
> * around a
> firewall.                                                            *
> *********************************************************************************
> 
> 
> downloadzip:
> 
> BUILD FAILED
> file:/home/kp/Tapestry-3.0/build.xml:725: Could not create task or type
> of type: get.
> 
> Ant could not find the task or a class this task relies upon.
> 
> --------------------------------------------
> 
> Also, the mentioned "ext-dist/README.html" doesn't exist in my Tapestry
> tree. Any clue why?
> 
> Thanks
> 
> On Fri, 2004-10-22 at 06:22, Andreas Vombach wrote:
> > FTP wrote:
> > 
> > >could it be that the following is wrong too:
> > >
> > >http://telia.dl.sourceforge.net/sourceforge/jboss/javassist-${java
> > >ssist.version}.zip
> > >  
> > >
> > 
> > Not sure about this, but another tip:
> > If you use jdk1.5 to compile (like I did) change the entry
> > 
> >     <target name="compile" depends="init"
> >         description="Compile all classes in the tutorial.">
> >         <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
> >             target="1.1">
> >             <classpath refid="compile.classpath"/>
> >         </javac>
> >     </target>
> > 
> > to
> > 
> >     <target name="compile" depends="init"
> >         description="Compile all classes in the tutorial.">
> >         <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
> >             source="1.3">
> >             <classpath refid="compile.classpath"/>
> >         </javac>
> >     </target>
> > 
> > in each build.xml file. jdk1.5 can not build 1.1 targets anymore and 
> > uses the source rather than the target switch.
> > 
> > Cheers Andreas
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> > 
> > 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie installation problem (build.xml:710)

Posted by FTP <ft...@atalos.com>.
Sorry for my ignorance but the Tapestry "build.xml" doesn't have such a
n entry and yes, I do use jdk 1.5. Is this a potential problem?

Now, when I run ant I get the following errors:

----------------------
Buildfile: build.xml

check-for-tomcat-dir:

proxyflags:

download-ext-framework:

setproxy:

testexistdest:
Testing for .//ext-dist/jdom-b8.jar

installgz:

setproxy:

testexistdest:
Testing for .//lib/ext/javassist-2.5.1.jar

installzip:

setproxy:

testexist:
Testing for .//ext-dist/downloads/javassist-2.5.1/javassist.jar

download-alert:

*********************************************************************************
* Due to the restrictions of the Apache Software License 2.0, it is
necessary   *
* to download some additional libraries that use non-ASL licenses. You
should   *
* be aware that redistribution of these files are regulated by their
individual *
* licenses. If you experience problems with the download, consult the
file      *
* ext-dist/README.html for details on how to configure the build to
work        *
* around a
firewall.                                                            *
*********************************************************************************


downloadzip:

BUILD FAILED
file:/home/kp/Tapestry-3.0/build.xml:725: Could not create task or type
of type: get.

Ant could not find the task or a class this task relies upon.

--------------------------------------------

Also, the mentioned "ext-dist/README.html" doesn't exist in my Tapestry
tree. Any clue why?

Thanks

On Fri, 2004-10-22 at 06:22, Andreas Vombach wrote:
> FTP wrote:
> 
> >could it be that the following is wrong too:
> >
> >http://telia.dl.sourceforge.net/sourceforge/jboss/javassist-${java
> >ssist.version}.zip
> >  
> >
> 
> Not sure about this, but another tip:
> If you use jdk1.5 to compile (like I did) change the entry
> 
>     <target name="compile" depends="init"
>         description="Compile all classes in the tutorial.">
>         <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
>             target="1.1">
>             <classpath refid="compile.classpath"/>
>         </javac>
>     </target>
> 
> to
> 
>     <target name="compile" depends="init"
>         description="Compile all classes in the tutorial.">
>         <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
>             source="1.3">
>             <classpath refid="compile.classpath"/>
>         </javac>
>     </target>
> 
> in each build.xml file. jdk1.5 can not build 1.1 targets anymore and 
> uses the source rather than the target switch.
> 
> Cheers Andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


newbie: setting a new tapestry project with spindel in eclipse

Posted by FTP <ft...@atalos.com>.
I did download the spindle plugin and created a dummy project. Now, how
do I deploy this under Tomcat 5.0.28? Tried to copy the "WEB-INF"
directory but Tomcat gives an error.

Thanks


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie installation problem (build.xml:710)

Posted by Andreas Vombach <an...@psi.ch>.
FTP wrote:

>could it be that the following is wrong too:
>
>http://telia.dl.sourceforge.net/sourceforge/jboss/javassist-${java
>ssist.version}.zip
>  
>

Not sure about this, but another tip:
If you use jdk1.5 to compile (like I did) change the entry

    <target name="compile" depends="init"
        description="Compile all classes in the tutorial.">
        <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
            target="1.1">
            <classpath refid="compile.classpath"/>
        </javac>
    </target>

to

    <target name="compile" depends="init"
        description="Compile all classes in the tutorial.">
        <javac srcdir="${src.dir}" destdir="${classes.dir}" debug="on"
            source="1.3">
            <classpath refid="compile.classpath"/>
        </javac>
    </target>

in each build.xml file. jdk1.5 can not build 1.1 targets anymore and 
uses the source rather than the target switch.

Cheers Andreas

---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: newbie installation problem (build.xml:710)

Posted by FTP <ft...@atalos.com>.
could it be that the following is wrong too:

http://telia.dl.sourceforge.net/sourceforge/jboss/javassist-${java
ssist.version}.zip

Thanks

On Thu, 2004-10-21 at 13:42, Andreas Vombach wrote:
> They changed the location of jdom-b8.
> In common.properties, line 59 type
> 
> jdom.loc=http://www.jdom.org/dist/binary/archive/jdom-b8.tar.gz
> 
> Cheers Andreas
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Re: Contrib-Palette question

Posted by Bryan Lewis <br...@maine.rr.com>.
I'm only guessing here, but I suspect it's IE 5.5.  We had problems with
that version too (I vaguely remember javascript and stylesheets breaking),
and our sysad told me it was "known to be a bad version".  We simply avoided
using it until the next release.  This is consistent with your lack of
problems on IE 6.

Maybe your customer has a machine with IE 6 on it, or could be persuaded to
upgrade one machine.


----- Original Message ----- 
From: "James Sherwood" <js...@romulin.com>
To: "Tapestry users" <ta...@jakarta.apache.org>
Sent: Thursday, October 21, 2004 10:10 AM
Subject: Contrib-Palette question


> Hello,
>
> I created a site that uses this Palette Component
>
> I tested it on every browser we could find.
>
> IE 6, 5
> Mozilla and Netscape
>
> All of them worked fine.
>
> The customer logs on and it will not select/deselect for them
>
> They are using IE 5.5(we do not have access to that browser)
>
> I got him to go to another site we have with a Javascript menu and the
menu
> works fine.
>
> Any ideas?
>
> Thanks in advance,
> James
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Contrib-Palette question

Posted by James Sherwood <js...@romulin.com>.
Hello,

I created a site that uses this Palette Component

I tested it on every browser we could find.

IE 6, 5
Mozilla and Netscape

All of them worked fine.

The customer logs on and it will not select/deselect for them

They are using IE 5.5(we do not have access to that browser)

I got him to go to another site we have with a Javascript menu and the menu
works fine.

Any ideas?

Thanks in advance,
James



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org