How to make two or more browser tabs load the same module without interfering with each other? - openxava

When I open two o more browser tabs pointing to the same module, the contents of tabs interfere with each other in many ways ( filters, sorting, list/detail mode ). It looks like it's no possible to make different things in differents tabs with the same module.
How to isolate each browser tab's session ? Is there a way to accomplish that ?
Thanks in advance.

As you can see in this link:
How to differ sessions in browser-tabs?
This is not an OpenXava specific issue.
However, you can define two identical modules in application.xml with different names, and load each module in its own browser tab. We could improve OpenXava to allow different session state for each tab. Are you willing to make this improvement and contribute it back to OpenXava?

Related

Feasibility of grouping tabs in Chrome

I'd like to be able to group tabs in Chrome (on Windows Vista/7 primarily), as I can with Tab Mix Plus on Firefox, so that I only see one group in the tab list at one time. I don't seem to be the only one, but it hasn't been done, so far as I can tell. There are plenty of tab managers out there, like TooManyTabs and Tab Outliner, which summarise, save and unload tabs, but they don't leave them loaded whilst hiding them.
I've not coded a Chrome extension before, but I think the specific problem is that you can't control the visibility of tabs (in the way you can with the hidden attribute of tabs in Firefox) or windows from a Chrome extension. Is that right, or have I missed something in the API?
If that is right, any way anyone can see to hack round this? Put the tabs I want invisible in a window and then use whatever Windows API allows http://www.hide-window.com/ to hide that window?

Sahi: Cannot execute scripts recorded in a browser in multiple browsers

Our web application is designed such that the text transform is picked from CSS.
There are multiple links on a webpage; hence i will take example of a Next link.
When i hover the mouse over Next link in FF, it shows the below code:
_click(_link("Next"));
Similarly when i hover the mouse over the same link in Chrome, it shows the below code:
_click(_link("NEXT"));
When the script is recorded in FF and executed in chrome, it fails at the location because "Next" link is unavailable. This is one example of a link and there are multiple links and multiple pages. For this scenario, do i need to verify the text for each link or is there a universal way i.e. toLowercase method that can help me.
Thanks.
As Kshitij pointed out, you can get this working by using a regular expression as your accessor... but you might also check the Alternatives pulldown in the Controller. Perhaps there's an alternative accessor that is better suited for both browsers.
I think, the question should be how can Sahi identify the element with text by ignoring the case-sensitivity.
Any tool can only record the attributes which is available on the browser at that time.
You can use the following code to achieve the functionality:
_click(_link("/Next/i"));

Buffers per tab in vim

Is there a way I can configure vim to remember buffers based on their tab?
I am currently working on two projects, and I have each project in its own tab, with its own local directory. To navigate through files I'm using FuzzyFinder.
The problem is that when I want to search through buffers, I get all the buffers from both projects.
Can I limit it to show only buffers from the current tab?
It may very well be that I am using a wrong approach here. If this is the case, what would be a better one?
Vim's tabs are not like most other editors tabs: they don't represent specific files or groups of files. They are just "views" allowing you to arrange buffers visually.
Vim's buffers are global and AFAIK there is no native way to bind them to specific tabs but I saw a "per-tab" fork of NERDTreee on Github the other day so it might be possible with some effort.
I use tabs only for quick edits and have usually one or two dozens buffers open. Most of them are hidden (:help hidden) and I rarely have more than 3 splits (only one file visible, most of the time). Buffer switching and file opening are done with LustyExplorer.
If I must work on two project I use two instances of GVim or two separate "GUI" windows in MacVim.
So yes, your approach is wrong (mine is most probably not perfect, either) but the culprit is the person or commity which decided to call Vim's tabs "tabs".
As a side note I find the "Rolodex Vim" idea quite enjoyable, there are two implementations on this page.

target form to specific browser tab

Is there a cross-browser compatible way to post a form in one tab of the browser to another (which I know is open and is of the same domain)?
I tried window.name='some_name'; and target='some_name' on the form, but this does not seem to work. Am I missing something?
There is no standard to how tabs are handled via javascript, so you are out of luck.
Most browsers these day also make sure each tab is segregated/partitioned from others, as much as possible, so this is unlikely to change in the recent future.
The closest you can get to posting to a different page is to use AJAX, or possibly using frames.

CSS filter for IE6 standard mode and quirk mode?

Is there any CSS filter can be applied to detect IE6's standard mode and quirk mode?
The story is that a jQuery script is using $.support.boxModel to handle different rendering mode. But the CSS use the *width hack to define the dimension. But this hack can only filter whether the browser is IE but not the real rendering mode IE is on.
You can't do it in css, but you can include different stylesheets for different versions of IE using conditional comments.
Why would you need that? Usually you write a style sheet for one explicit HTML document or at least one specific site where you know whether that page/site is running in quirks or standards mode.
It's not like a page can unexpectedly change modes :-)
If you really need to support a mixture of pages with different modes you'll need to use two separate style sheets, one for each mode.
I ended up using js injection
if(!$.support.boxModel) $('body').addClass('nobox');
And then do the styling in CSS.

Resources