| |

VerySource

 Forgot password?
 Register
Search
View: 920|Reply: 5

How to get the currently selected node of a dynamically generated tree in a portlet?

[Copy link]

1

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-5 14:20:01
| Show all posts |Read mode
The portlet was developed with sun java studio creator.Using the tree control in the creator, it cannot get any information about the currently selected node, including id or serial number, etc.
I saw that someone on Sun's forum is also discussing this issue.The more agreeable statement is that the tree control uses cookies to record operations on the tree, such as expanding nodes / selecting nodes, etc., but the portlet does not yet support cookie operations, so No relevant information can be obtained; but if the page is developed using the jsf standard, it is also very easy to implement through code ~~~
My question is, should there be a way to get the information of the selected tree node in the portlet ?! Please enlighten me ~~~
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-22 19:36:01
| Show all posts
Jack it up ~~~
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-1-23 09:18:01
| Show all posts
Top it first, haha!
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-1-25 13:45:01
| Show all posts
Get the label name of the specified portlet in the begin method, and then you can jump to the relevant portlet page
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-8-9 10:00:01
| Show all posts
The problem has been solved, although the method is very stupid, haha~~~
Made a jsf, and then embedded it in the portlet with an iframe~~~
Reply

Use magic Report

0

Threads

16

Posts

11.00

Credits

Newbie

Rank: 1

Credits
11.00

 China

Post time: 2020-8-9 11:45:01
| Show all posts
I haven't tried to get it in the portlet, but the original poster's method is pretty good, how can I be stupid?
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list