Re: Tapestry 5.5 beta and Java Modularity

2020-10-03 Thread Charles Roth

Thank you!

On 10/3/2020 4:29 PM, Thiago H. de Paula Figueiredo wrote:

Hello, Charles!

TAP5-2641 is taking care of fixing the split packages problem, plus setting
automatic module names for all the Tapestry JARs ("org.apache.tapestry" +
project name, except for tapestry5-annotations, which will be
org.apache.tapestry-annotations'). Lots of classes needed to be moved
around, but I'll try to provide a tool to rewrite imports to alleviate the
problem.

On Fri, Nov 8, 2019 at 7:03 PM Charles Roth  wrote:


Thanks for announcing the Tapestry 5.5 beta, with Java 9+ support.
We're experimenting with it now under Java 11 (since only 8 and 11 have
long-term-support).

We're finding that we must use java modules (module-info.java) in order
to compile, due to issues with the java.xml packages that we use.  (Long
story.)

Has anyone done this (i.e., use java modules) successfully with Tapestry
5.5?  I keep getting errors like:

 error: the unnamed module reads package
org.apache.tapestry5.internal.beaneditor from both tapestry.core and
beanmodel

...which suggests that the Tapestry jars may have 'split packages', i.e.
the same package name in different jars.

We're still learning the ins-and-outs of Java Modularity, so it may
simply be my confusion.  But any thoughts are most welcome!

One possible (crude) workaround may be to merge the tapestry jars into a
new (single) jar, and treat that as a single "automatic module".  I'll
try that if nothing else works, and report back.


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



--
Charles Roth
he.him.his
734-717-6803
lookfar.caucuscare.com 
Software Architect & Political activist






Re: Tapestry 5.5 beta and Java Modularity

2020-10-03 Thread Thiago H. de Paula Figueiredo
Hello, Charles!

TAP5-2641 is taking care of fixing the split packages problem, plus setting
automatic module names for all the Tapestry JARs ("org.apache.tapestry" +
project name, except for tapestry5-annotations, which will be
org.apache.tapestry-annotations'). Lots of classes needed to be moved
around, but I'll try to provide a tool to rewrite imports to alleviate the
problem.

On Fri, Nov 8, 2019 at 7:03 PM Charles Roth  wrote:

> Thanks for announcing the Tapestry 5.5 beta, with Java 9+ support.
> We're experimenting with it now under Java 11 (since only 8 and 11 have
> long-term-support).
>
> We're finding that we must use java modules (module-info.java) in order
> to compile, due to issues with the java.xml packages that we use.  (Long
> story.)
>
> Has anyone done this (i.e., use java modules) successfully with Tapestry
> 5.5?  I keep getting errors like:
>
> error: the unnamed module reads package
> org.apache.tapestry5.internal.beaneditor from both tapestry.core and
> beanmodel
>
> ...which suggests that the Tapestry jars may have 'split packages', i.e.
> the same package name in different jars.
>
> We're still learning the ins-and-outs of Java Modularity, so it may
> simply be my confusion.  But any thoughts are most welcome!
>
> One possible (crude) workaround may be to merge the tapestry jars into a
> new (single) jar, and treat that as a single "automatic module".  I'll
> try that if nothing else works, and report back.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
Thiago


Re: Open Discussion: remove Bootstrap from T5 core

2020-10-03 Thread Thiago H. de Paula Figueiredo
Hello, everyone!

I know this thread is a bit old already, but Tapestry 5.5.0 can be used
without Bootstrap at all: https://tapestry.apache.org/release-notes-550.html
, https://tapestry.apache.org/css.html, @ImportModule(NoBootstrapModule.class).
In addition, there's a number of configuration symbols controlling which
CSS classes are output by the components which use Bootstrap ones by
default but can be overriden. If there's some CSS class still hardcoded,
please let us know.

On Thu, Feb 14, 2019 at 7:14 AM Jens Breitenstein 
wrote:

> Hi Tapestry guys!
>
> I want to hear/read your opinion about getting rid of the Bootstrap
> Library from T5 core.
> I would like to move all BS related code (css/js) to a seperate module
> like "tapestry-bootstrap3" and decouple the hardcoded BS from T5.
> Furthermore I would like to see a second module "tapestry-bootstrap4"
> which uses BS4.
>
>  From the sources I see direct dependencies are less than expected. Some
> tml's use it (I just ignore the internal T5 pages for now):
>
>  AjaxFormLoop.tml
>  class="btn btn-default btn-sm"
>  
>
>  BeanEditForm.tml
>  class="btn-toolbar"
>  class="btn-group"
>  class="btn btn-primary"
>
>  DevTool.tml
>  
>  class="dropdown-menu"
>  class="dropdown-header"
>
>  ExceptionDisplay.tml
>  class="well"
>  class="pull-right"
>  class="checkbox"// ?
>
>  Palette.tml
>  class="btn-group-vertical"
>
> and some JAVA references like:
>
>  JavaScriptModule.java
>  configuration.add("bootstrap/ ...")
>
>  bundledModules=...
>
>
> Do you think it's worths looking into it, digging deeper?
> Any pitfalls I should consider?
> Anyone interested to discuss it?
>
>
> Jens
>
>
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>

-- 
Thiago


Re: How to Show a Div using Javascript

2020-10-03 Thread Thiago H. de Paula Figueiredo
Hello!

@Inject private JavaScriptSuport javaScriptSupport;

void beginRender() {

javaScriptSupport.addScript("document.getElementById("div1").style.display
= '';");
}

On Sat, Oct 3, 2020 at 10:06 AM marwa hussein 
wrote:

> Hello all,
> I am new to Tapestry and to Web development in general but I have to
> implement a simple web application for my research.
>
> I use a div that when loading the page I need to hide it, so I use this
> line:
>  
> The div contains "inside it" a grid that will contain some elements after a
> "load" button is pressed.
> how can I unhide the div again "after pressing the load button"?
>
> I know that I could do this with JS Line of code like:
>  document.getElementById("div1").style.display ="";
> But how and where can I add a javascrpt line of code directly in my Java
> class?
>
> Thansk in advance
>
> --
>
>
>
> *Marwa Hussein M. TA @ Information Systems Department Faculty of Computers
> & Information Assuit University*
> 
>


-- 
Thiago


How to Show a Div using Javascript

2020-10-03 Thread marwa hussein
Hello all,
I am new to Tapestry and to Web development in general but I have to
implement a simple web application for my research.

I use a div that when loading the page I need to hide it, so I use this
line:
 
The div contains "inside it" a grid that will contain some elements after a
"load" button is pressed.
how can I unhide the div again "after pressing the load button"?

I know that I could do this with JS Line of code like:
 document.getElementById("div1").style.display ="";
But how and where can I add a javascrpt line of code directly in my Java
class?

Thansk in advance

-- 



*Marwa Hussein M. TA @ Information Systems Department Faculty of Computers
& Information Assuit University*